<div dir="ltr">Yes I understand that. Is the DLL your own code or from a third party?<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, May 12, 2021 at 12:08 PM David O'Brien <<a href="mailto:Dave@iccs.co.nz">Dave@iccs.co.nz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div style="overflow-wrap: break-word;" lang="EN-NZ">
<div class="gmail-m_-8485977237994554297WordSection1">
<p class="MsoNormal"><span>Just trying to register the dll manually in a admin command prompt “Regsvr32 mydll.dll” is the issue, nothing to do with any other code. This returns to the command prompt with no messages but hangs
regsvr32.<u></u><u></u></span></p>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
<div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> <a href="mailto:delphi-bounces@listserver.123.net.nz" target="_blank">delphi-bounces@listserver.123.net.nz</a> <<a href="mailto:delphi-bounces@listserver.123.net.nz" target="_blank">delphi-bounces@listserver.123.net.nz</a>>
<b>On Behalf Of </b>Todd Martin<br>
<b>Sent:</b> Tuesday, 11 May 2021 6:47 PM<br>
<b>To:</b> NZ Borland Developers Group - Delphi List <<a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a>><br>
<b>Subject:</b> Re: [DUG] Registering DLL's<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">You haven't given much detail to go on.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Presumably you're registering your COM objects in the Initialization section of your Delphi units. What else is happening there that might be starting other threads?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I would comment out everything except the Factory.Create() methods to narrow down the source of the problem.<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, May 11, 2021 at 5:46 PM Jan Bakuwel <<a href="mailto:jan.bakuwel@omiha.com" target="_blank">jan.bakuwel@omiha.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-color:currentcolor currentcolor currentcolor rgb(204,204,204);border-style:none none none solid;border-width:medium medium medium 1pt;padding:0cm 0cm 0cm 6pt;margin-left:4.8pt;margin-right:0cm">
<p class="MsoNormal">Hi David,<br>
<br>
On 11/05/21 2:01 pm, David O'Brien wrote:<br>
> We have multiple DLL's that get registered on install for one of our products. Lately for 2 out of 1000's of users the registration fails for one of the DLL's.<br>
><br>
> The particular DLL can't be registered manually, regsvr32 hangs. It drops back to the command line after 3 or more seconds, but no messages, needs to be killed in task manager.<br>
><br>
> I would suspect it to be the DLL that's at fault, but logging on as another user on the same machine it registers fine and works for that user. Even though it's registered by the second user, it hangs when trying to be loaded by the original user. All the
other DLL's register and load fine, so I don't think it's permissions.<br>
<br>
Could it be an issue with the registry entries specific for that user?<br>
<br>
You could run scanreg.exe and see if that reveals anything.<br>
<br>
I trust you checked the event logs and didn't see anything in there.<br>
<br>
<a href="https://support.microsoft.com/en-us/topic/description-of-the-windows-registry-checker-tool-scanreg-exe-aaae4323-daa2-8477-5a4e-2a273779fdf0" target="_blank">https://support.microsoft.com/en-us/topic/description-of-the-windows-registry-checker-tool-scanreg-exe-aaae4323-daa2-8477-5a4e-2a273779fdf0</a><br>
<br>
cheers,<br>
Jan<br>
<br>
<br>
-- <br>
<br>
Omiha Systems Ltd<br>
NEW ZEALAND<br>
<br>
For support<br>
please email <a href="mailto:support@omiha.com" target="_blank">support@omiha.com</a><br>
or browse to <a href="http://support.omiha.com" target="_blank">http://support.omiha.com</a><br>
<br>
For urgent support<br>
please call<br>
<br>
p +64 9 950 3007<br>
m +64 22 103 9151<br>
<br>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">
delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe<u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
NZ Borland Developers Group - Delphi mailing list<br>
Post: <a href="mailto:delphi@listserver.123.net.nz" target="_blank">delphi@listserver.123.net.nz</a><br>
Admin: <a href="http://delphi.org.nz/mailman/listinfo/delphi" rel="noreferrer" target="_blank">http://delphi.org.nz/mailman/listinfo/delphi</a><br>
Unsubscribe: send an email to <a href="mailto:delphi-request@listserver.123.net.nz" target="_blank">delphi-request@listserver.123.net.nz</a> with Subject: unsubscribe</blockquote></div>