DLL Initialization failure with RB6.01
I just moved an application from Delphi 5 and RB 5 to Delphi 6 and RB 6.01.
Whenever I run a report I get the message:
Initialization of the dynamic link library
C:\WINNT\System32\spool\DRIVERS\W32X86\2\hpblff0.dll failed. The process
is terminating abnormally.
The file does exist.
The exception message only appears when running the application from within
the Delphi IDE.
How do I fix this?
This discussion has been closed.
Comments
Article: Troubleshooting problem such as
"Initialization of the DLL
WINNT\..\Drivers\..\HPBFDF0.DLL failed.
---------------------------------------------------
This error only occurs when an application is run from within Delphi
with the Integrated Debugging option turned on. It is an issue that
exists between the Delphi debugger and the HP driver.
The solution is to add the directory of the printer driver DLL's to the
Windows NT PATH system variable.
For example on my computer the printer driver dll's listed in the
Delphi exception reside in
C:\WINNT\system32\spool\drivers\w32x86\2
Therefore I was able to add the following line to the autoexec.bat
file:
PATH=C:\WINNT\system32\spool\drivers\w32x86\2;%PATH%
Special thanks to one of our customers, Boris Latour, for the solution
to this problem. :-}
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com