If you mean a straightforward DLL call then the code will run in the context of 
the thread that calls it.  

COM DLL's can get more complicated with thread apartments if I recall 
correctly, though it's been long time since I had to grapple with those issues 
so I'd have to bone up on those myself.

--  
Jolyon Smith


On Thursday, 29 August 2013 at 16:29, Ross Levis wrote:

>  
> I’m curious if a DLL is loaded from within a thread, and the DLL does its own 
> executing of code with say a Timer, does that code run within that thread, or 
> the main thread of the program?
>  
>  
>   
>  
>  
>  
>  
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: [email protected] (mailto:[email protected])
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to [email protected] 
> (mailto:[email protected]) with Subject: unsubscribe
>  
>  


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to