LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

C0150002 Error - Missing Dependencies

I have a CVI application written in CVI 8.5.0  installed on a clean computer (No developer system) which displays an error:

 

"Application Failed to Properly Initialize : 0xC0150002"

 

I have come to realize that this error occurs due to a dependency on missing drivers. The error is resolved when I install MAX 4.3 (propably other versions of max would resolve this as well but this is the only version i have right now). Why does my CVI application need MAX to run?

 

Thanks,
Craig 

0 Kudos
Message 1 of 7
(17,059 Views)

Hi Craig,

 

Did you happen to run Dependency Walker on your application to see what underlying components were missing? You could actually still do this now and send us a screenshot of your dependency tree.  In general, you shouldn't need MAX to run a CVI application.  It would have helped to know what exact components were missing so I could tell you why they are needed. MAX uses a variety of underlying shared NI components so its difficult to guess which one you needed.  Typically you see that message when you've statically linked against some DLL and your application can't load that DLL upon startup.

 

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 7
(17,052 Views)

See the attached picture. If you want I can try to get a screen shot of the actual dependency tree but it was several screens long so I just took a screen shot of the modules.

 

The screenshot is the dependencies of the working version. (even though there's an error on the Visual Studio 2005 dll, MSVCR80.dll)

 

Thanks again,

Craig

Message Edited by craige on 09-30-2008 01:42 PM
0 Kudos
Message 3 of 7
(17,016 Views)

Hi Craig,

 

What I actually needed was the tree view of the top-level dependencies. For example, attached is the 2yaxis shipping example with the section outlined that I would like you to provide me with on your EXE. 

 

Thanks

 

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 4 of 7
(16,983 Views)

Here is the top level of the dependency tree. FindNetburner.dll and DDanalyze.dll are my own DLLs.

 

Thanks,

Craig

Message Edited by craige on 10-01-2008 09:46 AM
0 Kudos
Message 5 of 7
(16,968 Views)

Craig,

 

My guess is that you were missing some fundamental DLL needed by your FindNetburner.dll and DDanalyze.dll and MAX just "happened" to install that underlying component. Could you try opening up your EXE on a machine without MAX like you had it before in dependency walker and see if it complains about any missing DLLs associated with your 2 DLLs? 

 

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 6 of 7
(16,939 Views)

Looks to me like one or more components used by your app may be linked against the Visual C++ 2005 dynamic runtime library, which isn't necessarily on the PC.

 

You can download an installer for the run-time library from here.

--
Martin
Certified CVI Developer
0 Kudos
Message 7 of 7
(16,914 Views)