BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Ho to instantiating TADODataSet member in a thread

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage)
View previous topic :: View next topic  
Author Message
Ronan
Guest





PostPosted: Sun Dec 21, 2003 11:38 am    Post subject: Ho to instantiating TADODataSet member in a thread Reply with quote



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





PostPosted: Tue Dec 23, 2003 1:07 pm    Post subject: Re: Ho to instantiating TADODataSet member in a thread Reply with quote



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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Usage) All times are GMT
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.