Application Fail to start correctly error

0

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.

c++
cen-xfs
asked on Stack Overflow Jan 28, 2015 by Mlungisi Ndlela • edited Jan 29, 2015 by Mlungisi Ndlela

2 Answers

1

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.

answered on Stack Overflow Feb 9, 2015 by Alex.D.Alexeev • edited Feb 10, 2015 by Ganesh Kamath - 'Code Frenzy'
0

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).

answered on Stack Overflow Jan 29, 2015 by VoltagE-ThE

User contributions licensed under CC BY-SA 3.0