 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Ronan Guest
|
Posted: Sun Dec 21, 2003 11:38 am Post subject: Ho to instantiating TADODataSet member in a thread |
|
|
This is my second posting on this topic, please help..
-->
I am unable to instantiate a ADODataSet object inside a thread. I have a
TADODataSet member within the thread class.
TADODataSet *ADODataSet3;
But when I try to instantiate it in the execute method of the thread
ADODataSet3 = new TADODataSet(NULL)
the debugger stops at that point. I have no idea why. Is it to do with the
constructor method of the TADODataSet ?? or something important I am
missing.
Please help
Ronan
|
|
| Back to top |
|
 |
Ronan Guest
|
Posted: Tue Dec 23, 2003 1:07 pm Post subject: Re: Ho to instantiating TADODataSet member in a thread |
|
|
Got the answer guys,
The instantiation using the new operator should be done in the constructor
method of the thread class, not in the execute method.
Cheers,
ronan
------------
| Quote: | I am unable to instantiate a ADODataSet object inside a thread. I have a
TADODataSet member within the thread class.
TADODataSet *ADODataSet3;
But when I try to instantiate it in the execute method of the thread
ADODataSet3 = new TADODataSet(NULL)
the debugger stops at that point. I have no idea why. Is it to do with the
constructor method of the TADODataSet ?? or something important I am
missing.
Please help
Ronan
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|