[DUG] 'Stupid' Dll question

Robert martin rob at wildsoft.co.nz
Fri Dec 2 09:08:16 NZDT 2005


Hi

This might be a stupid question but....  If I create a dll do I have to
do anything in relation to multi threading?

I have a Dll that has two calls, each call creates and object
(referenced in a local variable), performs some processing then frees
the object and returns a result.

How does windows handle multiple apps / threads calling a dll?  Is it
one virtual instance of the dll per thread or some other scenario?

I know lost of questions but I just want to get it straight in my head.
We think this dll may be crashing and wonder if it is to do with being
called by two threads simultaneously.



Rob Martin
Software Engineer

phone +64 03 377 0495
fax   +64 03 377 0496
web www.chreos.com

Wild Software Ltd


More information about the Delphi mailing list