Error no. -2147023782 Automation error A dynamic link library (DLL) initialization routine failed.

RetalixUSA
RetalixUSA used Ask the Experts™
on
This line of code doesn't work on one  machine out of hundreds:

Set CZip = CreateObject("V8ReportHistory.ZIP")

This is an error :

8/7/2006  ---  11:05:25 PM  ---  RunReports - Error no. -2147023782
Error description: Automation error
A dynamic link library (DLL) initialization routine failed.

I check it again , everything is registered and seems exactly as on the machines where it is working.
Any ideas, thanks.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
If any additional info is needed , please indicate it and i will provide it.
.Net and Infrastructure Consultant
Commented:
best guess is that the V8ReportHistory.dll is not registered properly... (or one of its dependancies is missing)

try a
regsvr32 dllfilename.dll /u
regsvr32 Fullpathtodll\dllfilename.dll

if that still doesnt work i would start by looking at my installed ISAM modules and ODBC drivers...

Author

Commented:
Everything is registered correctly.
The fact is that other applications on the same machine are using successfully this class.
The error on create object happens sometime , not every day. Reboot of the machine makes it work for additional period of time and then again failure on :
                        Set CZip = CreateObject("V8ReportHistory.ZIP") ' New ZIP

Any ideas ?
Thanks,
Alex
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

lojk.Net and Infrastructure Consultant

Commented:
you would need to check in the initialisation code of the instatiated class. its probably failing because it cant create an instance correctly

perhaps a log file that its using is in use at the time of instantiation or some other condition that is preventing the creation of the class. perhaps it use a class that can raise a modal form and/or that is not multithreaded correctly or releaseing control to the dll when required.

i would really need far more information (preferably source) on the v8reporthistroy file, what files does it depend on, what files does it write? what permission does it need on the machine (registry etc). What does it actually do?

Commented:
Did anyone find a solution to this?
No thats wots great about experts exchange
NO FOLLOWUP OT HOUSEKEEPING

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial