LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

external process failed to load properly (0xc0000022)

When I attempt to run my LabWindows 5.5 executable, either in debug or release mode, I receive the following errors:

Application Error window 1
The application failed to initialize properly (0xc0000022). Click on OK to terminate the application.

The next window states:
Fatal Run-Time Error
The external process failed to load properly. Verify that all DLLs used by the debuggee were installed in the path.

These two windows appear prior to breakpointing on the first statement.

I have tried the problem on a clean install of LabWindows 5.5. I have double checked the DLLs that I know are used, but that has not helped. I am using two ActiveX adapters, which I have recompiled as well. Furthermore, I noticed this p
roblem on both Windows XP and Windows 2000.

Any help would be appreciated.
0 Kudos
Message 1 of 5
(5,823 Views)
C0000022 is STATUS_ACCESS_DENIED, so it looks as though Windows may be blocking access to something (executable, dll or registry entry) when you try to run. Does your user account have all necessary permissions?

--
Martin
--
Martin
Certified CVI Developer
0 Kudos
Message 2 of 5
(5,823 Views)
Hi,

The first thing to check here is what i throwing the error: the CVI compiler, the linker, the debugger or your application.

Check if the exe get actually built, the you can run it outside of the CVI environment to see if the error is still there. You may want to try this in release mode to make sure that we leave the debugger out of the picture.

If possible you may want to run your exe step by step to see if we can spot the troubling function. You can also download the demo version of CVI 7.0 and check what happens there.

I hope this helps.

Regards,

Juan Carlos
N.I.
0 Kudos
Message 3 of 5
(5,823 Views)

I am running CVI 8.5 and I am getting this error.

I have rolled back to the previous version of the PRJ file, and copied back all the files I deleted (I deleted a few files that are no longer needed) and I still get this error.

I tried building the release exe and running that and I get the pop up error that the application failed to load properly.

How can I determine what is causing this error?

0 Kudos
Message 4 of 5
(5,136 Views)

"the thread is alive ! it came back from the dead ! 4 years of mourning bring it back onto our world ! all hail the thread !"

 

joke aside: can you please post into a new thread ? while reading, i was wondering why the original poster was talking about CVI 5.5...

CVI had a whole lot of improvements since those days and there is pretty little chance that your problem is the same.

 

anyway, try deleting all object files (the 'cvibuild' directory), then rebuild your application. also make sure all the dependencies are satisfied, which you can check using the Dependency Walker. (the dependency walker is an external tool for which i don't remember the URL, but you may find it easily by doing a search on this same forum, since it has been mentioned multiple times here)

0 Kudos
Message 5 of 5
(5,120 Views)