Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

DLL Initialization failure with RB6.01

edited September 2001 in General

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?

Comments

  • edited September 2001
    --------------------------------------------------
    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


This discussion has been closed.