09-25-2008 01:44 PM
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
09-25-2008 04:00 PM
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,
09-30-2008 01:39 PM - edited 09-30-2008 01:42 PM
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
10-01-2008 08:15 AM
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,
10-01-2008 09:46 AM - edited 10-01-2008 09:46 AM
Here is the top level of the dependency tree. FindNetburner.dll and DDanalyze.dll are my own DLLs.
Thanks,
Craig
10-01-2008 01:59 PM
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,
10-02-2008 08:09 AM
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.