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.

From: [email protected] 
<[email protected]> On Behalf Of Todd Martin
Sent: Tuesday, 11 May 2021 6:47 PM
To: NZ Borland Developers Group - Delphi List <[email protected]>
Subject: Re: [DUG] Registering DLL's

You haven't given much detail to go on.

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?
I would comment out everything except the Factory.Create() methods to narrow 
down the source of the problem.

On Tue, May 11, 2021 at 5:46 PM Jan Bakuwel 
<[email protected]<mailto:[email protected]>> wrote:
Hi David,

On 11/05/21 2:01 pm, David O'Brien wrote:
> 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.
>
> 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.
>
> 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.

Could it be an issue with the registry entries specific for that user?

You could run scanreg.exe and see if that reveals anything.

I trust you checked the event logs and didn't see anything in there.

https://support.microsoft.com/en-us/topic/description-of-the-windows-registry-checker-tool-scanreg-exe-aaae4323-daa2-8477-5a4e-2a273779fdf0

cheers,
Jan


--

Omiha Systems Ltd
NEW ZEALAND

For support
 please email [email protected]<mailto:[email protected]>
 or browse to http://support.omiha.com

For urgent support
 please call

p +64  9 950 3007
m +64 22 103 9151

_______________________________________________
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