<div>
If you mean a straightforward DLL call then the code will run in the context of the thread that calls it.
</div><div><br></div><div>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.</div><div><br></div><div><div>-- </div><div>Jolyon Smith<br></div><div><br></div></div>
<p style="color: #A0A0A8;">On Thursday, 29 August 2013 at 16:29, Ross Levis wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<span><div><div><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"><meta name="Generator" content="Microsoft Word 12 (filtered medium)"><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--><div><div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family:"Calibri","sans-serif";color:#1F497D">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?<o:p></o:p></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><span style="font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p></div></div></div><div><div>_______________________________________________</div><div>NZ Borland Developers Group - Delphi mailing list</div><div>Post: <a href="mailto:delphi@listserver.123.net.nz">delphi@listserver.123.net.nz</a></div><div>Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi">http://delphi.org.nz/mailman/listinfo/delphi</a></div><div>Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</div></div></div></span>
</blockquote>
<div>
<br>
</div>