[DUG] LoadLibrary in a thread

Jolyon Smith jsmith at deltics.co.nz
Thu Aug 29 16:51:50 NZST 2013


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: delphi at listserver.123.net.nz (mailto:delphi at listserver.123.net.nz)
> Admin: http://delphi.org.nz/mailman/listinfo/delphi
> Unsubscribe: send an email to delphi-request at listserver.123.net.nz (mailto:delphi-request at listserver.123.net.nz) with Subject: unsubscribe
>  
>  


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20130829/6faa2364/attachment.html 


More information about the Delphi mailing list