[DUG] Registering DLL's

Todd Martin todd.martin.nz at gmail.com
Wed May 12 12:20:38 NZST 2021


Yes I understand that. Is the DLL your own code or from a third party?

On Wed, May 12, 2021 at 12:08 PM David O'Brien <Dave at iccs.co.nz> wrote:

> 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:* delphi-bounces at listserver.123.net.nz <
> delphi-bounces at listserver.123.net.nz> *On Behalf Of *Todd Martin
> *Sent:* Tuesday, 11 May 2021 6:47 PM
> *To:* NZ Borland Developers Group - Delphi List <
> delphi at listserver.123.net.nz>
> *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 <jan.bakuwel at omiha.com> 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 support at omiha.com
>  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: 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 with
> Subject: unsubscribe
>
> _______________________________________________
> NZ Borland Developers Group - Delphi mailing list
> Post: 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 with
> Subject: unsubscribe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://listserver.123.net.nz/pipermail/delphi/attachments/20210512/9ca633d4/attachment.html 


More information about the Delphi mailing list