Code Coverage and DLL's not working?

Don Clugston dac at nospam.com.au
Wed Oct 24 08:34:16 PDT 2007


Simen Haugen wrote:
> I get an error "The application failed to initialize properly (0x0e0440001)" 
> when trying to run an executable built with -cov. It happens both for 
> release and debug builds (the same exe/dll runs without cov).
> 
> Could the problem be that I'm using -cov on my dll...?
> 
> I'm using dmd 1.022

There might be a function you need to call in DLLmain to initialize the code 
coverage (in much the same way as you need to manually run the unit tests).
The DMD docs about DLL's are from before the -cov option existed.




More information about the Digitalmars-d-learn mailing list