LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem launching LabWindows/CVI debug executable

I am trying to lauch a LabWindows/CVI executable built in debug mode using .NETs System.Diagnostics.Process method.
 
This method works with LabWindows/CVI executables built in release mode, but not in debug mode.
 
Process p = new Process();
p.StartInfo.FileName = "program_dbg.exe";  // works fine for "program.exe"
p.Start();
 
The process attempts to start but exits with exit code 11552540.  It does not even execute the first line of (programmed) code in the executable.
 
Am I missing something?  Are there any arguments I need to use to launch a LabWindows/CVI executable built in debug mode?
 
 
 
0 Kudos
Message 1 of 3
(3,193 Views)
Hi kcoggins,

I just did a quick test with a few CVI examples and had no problems calling debug versions of those EXEs from .NET via the Process.Start method.

Have you tried building a shipping example in debug mode and calling that from .NET? If so, did you have problems?  Or is it just your debug EXE that you are having issues with? Have you tried putting try/catch statements in your code to see if an exception is occurring?  If so, did the InnerMessage field have any relevant information?

If you have a basic debug EXE (with source) that I can run from .NET and get the problem, that would be great.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 3
(3,187 Views)
The problem has been resolved.
 
The CVI application used a DLL (dll A) that relied on two other DLLs (dll B and dll C).  By modifying the configuration of dll A such that dll B and dll C were delay loaded, the problem was resolved.
0 Kudos
Message 3 of 3
(3,157 Views)