I'm using V5. So I still need to use define NOFORMS and undef NOFORMS for each thread's execute begin/end.
Paul ----- Original Message ----- From: "Arno Garrels" <[EMAIL PROTECTED]> To: "ICS support mailing" <[email protected]> Sent: Monday, July 16, 2007 2:39 PM Subject: Re: [twsocket] NOFORMS > Paul wrote: >> I always thaught that NOFORMS had to be defined for its own thread- >> save window allocation proc (and dealloc) > > That's correct for V5! It depends on the version, V6 uses its > own thread-safe window allocation/deallocation routines regardless > whether NOFORMS is defined or not. In previous versions, if NOFORMS > is not defined non thread-safe Forms/Classes.AllocateHwnd/DeallocateHwnd > is used for the hidden window. > >> So as long as the Forms unit in included in the project's uses >> clause, I don't need to define NOFORMS in any of the threads ? > > You don't need it, but it was not thread-safe in V5! > Don't do that. > > -- > Arno Garrels [TeamICS] > http://www.overbyte.be/eng/overbyte/teamics.html > >> >> Paul >> >> ----- Original Message ----- >> From: "Francois Piette" <[EMAIL PROTECTED]> >> To: "ICS support mailing" <[email protected]> >> Sent: Monday, July 16, 2007 2:00 PM >> Subject: Re: [twsocket] NOFORMS >> >> >>>> Do I need to define NOFORMS in a thread when a blocking call (Http- >>>> Get) is >>> used ? >>>> >>>> I'm using it without in a thread and it works fine (using it 2 >>>> years) >>>> >>>> I need to exchange a lot of database connections to webservice >>>> connections >>> and the main thread doesn't need the NOFORMS define. >>>> I would need a lot defines and undefs otherwise >>> >>> NOFOMRS has nothing to do with the fact that the component is used >>> within a >>> secondary thread or the main thread. NOFORMS change the code in the >>> component so that it doesn't depends on the forms unit which is huge >>> and can >>> make a program executable file much larger even if no form is needed >>> (typically in console mode program). >>> >>> >>> Contribute to the SSL Effort. Visit >>> http://www.overbyte.be/eng/ssl.html -- >>> [EMAIL PROTECTED] >>> Author of ICS (Internet Component Suite, freeware) >>> Author of MidWare (Multi-tier framework, freeware) >>> http://www.overbyte.be >>> >>> -- >>> To unsubscribe or change your settings for TWSocket mailing list >>> please goto http://www.elists.org/mailman/listinfo/twsocket >>> Visit our website at http://www.overbyte.be > -- > To unsubscribe or change your settings for TWSocket mailing list > please goto http://www.elists.org/mailman/listinfo/twsocket > Visit our website at http://www.overbyte.be > > -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be
