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 

TThread Problem with BDS 2006

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





PostPosted: Tue Jan 09, 2007 5:12 am    Post subject: TThread Problem with BDS 2006 Reply with quote



I have some existing code, which works perfectly for BCB v1,3,4,5,6 but does
not compile in C++ Builder 2006 Architect.

I am having a problem with TThread::Synchonize() not being declared in the
BDS 2006 standard VCL headers.

Anyone know how to fix this?

- darren dwyer
http://bcb-tools.com
"RAD DirectX for C++ Builder"
Back to top
David Dean [CodeGear]
Guest





PostPosted: Tue Jan 09, 2007 5:29 am    Post subject: Re: TThread Problem with BDS 2006 Reply with quote



In article <45a2d164 (AT) newsgroups (DOT) borland.com>,
"Darren Dwyer" <admin@bcb-tools.com> wrote:

Quote:
I am having a problem with TThread::Synchonize() not being declared in the
BDS 2006 standard VCL headers.

Anyone know how to fix this?

see the workaround here:

<http://qc.codegear.com/wc/qcmain.aspx?d=23025>

--
-David Dean
CodeGear C++ QA Engineer
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Jan 10, 2007 2:06 am    Post subject: Re: TThread Problem with BDS 2006 Reply with quote



"Darren Dwyer" <admin@bcb-tools.com> wrote in message
news:45a2d164 (AT) newsgroups (DOT) borland.com...

Quote:
I have some existing code, which works perfectly for BCB v1,3,4,5,6
but does not compile in C++ Builder 2006 Architect.

What is the EXACT problem you are having? You do know that the
compiler in BDS was updated to better conform to standards, don't you?
You now have to use '&' when passing a method to Synchronize(), ie:

Synchronize(&MethodName);

Quote:
I am having a problem with TThread::Synchonize() not being declared
in the BDS 2006 standard VCL headers.

Yes, it is, same as it always has been. It is declared on line 2151
of Classes.hpp:

--- ($BDS)\include\VCL\Classes.hpp ---

class PASCALIMPLEMENTATION TThread : public System::TObject
{
//...
protected:
//...
void __fastcall Synchronize(TThreadMethod AMethod)/* overload
*/;
//...
};


Gambit
Back to top
Darren Dwyer
Guest





PostPosted: Fri Jan 12, 2007 3:10 am    Post subject: Re: TThread Problem with BDS 2006 Reply with quote

Thanks.
That was the exact problem I was having...

- darren

"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:45a3f581$1 (AT) newsgroups (DOT) borland.com...
Quote:

"Darren Dwyer" <admin@bcb-tools.com> wrote in message
news:45a2d164 (AT) newsgroups (DOT) borland.com...

I have some existing code, which works perfectly for BCB v1,3,4,5,6
but does not compile in C++ Builder 2006 Architect.

What is the EXACT problem you are having? You do know that the
compiler in BDS was updated to better conform to standards, don't you?
You now have to use '&' when passing a method to Synchronize(), ie:

Synchronize(&MethodName);

I am having a problem with TThread::Synchonize() not being declared
in the BDS 2006 standard VCL headers.

Yes, it is, same as it always has been. It is declared on line 2151
of Classes.hpp:

--- ($BDS)\include\VCL\Classes.hpp ---

class PASCALIMPLEMENTATION TThread : public System::TObject
{
//...
protected:
//...
void __fastcall Synchronize(TThreadMethod AMethod)/* overload
*/;
//...
};


Gambit

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.