LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Application failed to start

Hi guys,
  I am using LabwindowsCVI 8.1 evaluation version.  In my Program I am Linking an external DLL(Provided by the Instrument Developer) to the main program by means of  attaching the import Library of that DLL to my main program( given by Instrument developer) and by including header files of that DLL in my main program. I am able to compile that program sucessfully and I am able to successfully crete the debugable executable too but while I am running the Program it is giving out error.
 
first window pops out saying, Heading : Unable to Locate component
   The application has failed to start because XXX.dll was not found. Reinstalling the application may fix this problem 
 
when this window is closed second window pops out saying :
       The external process failed to load properly. Verify that all DLL's used by the debuggee were installed in the path.
 
when this window is clicked OK, I get a FATAL Runtime error Window at the bottom part of my program saying the error  with the  thread Number and the error in the POP up window described later.
 
I use Windows XP
help me in solving the problem,
Thanks in Advance
 
Balaji
 
 
 
0 Kudos
Message 1 of 3
(3,419 Views)

Hi Balaji,

Typically that message means that your DLL probably has dependency DLLs that it can't load into memory. You wouldn't see this during compile time since finding those child DLLs occurs by Windows at run-time.

Usually what I do in this case is to use a 3rd party tool called Dependency Walker (free at www.download.com) which shows DLL dependencies. Any DLL that your "top-level" DLL requires to run will be listed here.  You will see references to OS-specific DLLs (kernel32.dll, user32.dll, gdi32.dll, ntdll.dll, etc) but don't focus on them but rather the ones that do not come with the OS that are required.

The thing to remember about finding these child DLLs is what algorithm Windows uses to locate the dependences. The Making LabWindows/CVI Aware of the Location of Unregistered DLLs KnowledgeBase discusses this.

Hope this helps and let me know if you still have trouble.

Best Regards,

Jonathan N.
National Instruments
Message 2 of 3
(3,403 Views)
Thank you Jonathan,
     Your suggestion really helped me in solving my problem.
 
regards,
Balaji 
    
0 Kudos
Message 3 of 3
(3,373 Views)