[DUG] 'Stupid' Dll question

Rohit Gupta r.gupta at xtra.co.nz
Fri Dec 2 16:10:30 NZDT 2005


As far as I know, in win2k onwards the dll is loaded into the memory 
space of the calling app (in terms of data).  So you dont have to worry 
about mulriple apps causing problems.

Robert martin wrote:

> 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
> _______________________________________________
> Delphi mailing list
> Delphi at ns3.123.co.nz
> http://ns3.123.co.nz/mailman/listinfo/delphi
>
>




More information about the Delphi mailing list