Mlungisi Ndlela
Mlungisi Ndlela

Reputation: 16

Application Fail to start correctly error

I'm developing an application using Wosa/XFS and the current problem is that it produce and error on startup saying "The application was unable to start correctly (0xc0000142). Click Ok to close the application."

This is produced by Wfs_Startup call.

BOOL Wfs_Startup(void) { WFSVERSION WfsVersion; return (WFSStartUp(RECOGNISED_VERSIONS, &WfsVersion) == WFS_SUCCESS); }

I don't know what may be the course of this error whether it because I didn't load the NI_XFSMgr.DLL or it the 3 DLL files that I put on System32 directory.

Anyone with a knowledge on WOSA/XFS please help me out with the solution. My application is console based at the moment.

I thank you.

Upvotes: 0

Views: 625

Answers (2)

Alex.D.Alexeev
Alex.D.Alexeev

Reputation: 304

This error may occur when you haven't configure xfs registry correctly. Check your HKEY_LOCAL_MACHINE\SOFTWARE\XFS\XFS_MANAGER node.

All values must be correct.

Another reason may be your application has no access to xfs shared memory file.

Path to shared memory file is set at HKEY_LOCAL_MACHINE\SOFTWARE\XFS\XFS_MANAGER ShareFileName parameter.

Upvotes: 1

VoltagE-ThE
VoltagE-ThE

Reputation: 91

This isn't an XFS problem. This is due to the DLLs you put in to the system32 folder not being signed or digitally no longer valid. More info and a trick to go pass this can be found from here

The easier solution would be to put those DLLs in the folder where your application is (And that to be outside of system32).

Upvotes: 0

Related Questions