Search code examples
c++cen-xfs

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.


Solution

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