Article View: borland.public.cppbuilder.nativeapi
Article #2501Re: Callback, Dll, Thread and synchronization HELP!
From: Remy Lebeau (TeamB)
Date: Thu, 08 Feb 2007 18:04
Date: Thu, 08 Feb 2007 18:04
26 lines
1908 bytes
1908 bytes
"Stefano Bonifazi" <stefboombastic@email.it> wrote in message news:45cae882@newsgroups.borland.com... > That is not my code, and it's not written for a Borland compiler at > all:( Then you are out of luck. Non-Borland compilers can't handle the VCL at all. So you can't do anything in your DLL that requires VCL-level interactions with the hosting application. That means no Synchronize() at all. > The Critical Section is initializated in the Initialize function of my > DLL, and deleted in its Close function (the first and last the user must > call!) You are going about this all wrong. You are not responsible for providing thread-safety functions for the application to use. Especially if you are going to compile your DLL for other platforms, so you can't use platform-specific objects anyway. The application has to manage its own thread safety on its own outside of your DLL. Gambit
Technical Details
Message-ID:
<45cb6644@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45ca2bba@newsgroups.borland.com> <45ca3549@newsgroups.borland.com> <45ca373c$1@newsgroups.borland.com> <45ca50ae$1@newsgroups.borland.com> <45cae882@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,7631859e1e5bf75d X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45ca2bba@newsgroups.borland.com> <45ca3549@newsgroups.borland.com> <45ca373c$1@newsgroups.borland.com> <45ca50ae$1@newsgroups.borland.com> <45cae882@newsgroups.borland.com> Subject: Re: Callback, Dll, Thread and synchronization HELP! Date: Thu, 8 Feb 2007 10:04:10 -0800 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45cb6644@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1170957892 75.83.34.171 (8 Feb 2007 10:04:52 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail