Showing results for 
Search instead for 
Did you mean: 

EXE breaks when built with debugging enabled

I have a large application that I would like to debug using the Desktop Execution Trace Toolkit.

So I followed the instructions and checked the 'Enable Debugging' option in the build spec. 

The EXE builds nicely without any issues but when I run it I get  a broken arrow and "VI has an error of type 42328. The full development version of LabVIEW is required to fix the errors."

This is on the same machine that built the code.


I have these settings in the INI:


Any ideas?

0 Kudos
Message 1 of 5

Are you saying that if you uncheck the "debugging" option, the EXE works?


Or are you saying that it works fine when you run it as VIs, but not as an EXE, either way?


Also, does your code reference any DLLs directly, either classic DLLs or .NET DLLs?  If it does, and the EXE can't find the DLL, that's one of the most common causes of this error.

0 Kudos
Message 2 of 5

The ESE works just fine when I uncheck Enable Debugging.

It does reference DLLs both .NET and native but they are where they are supposed to be and work fine when Enable Debugging is unchecked.

0 Kudos
Message 3 of 5

Do you use many "disable" structures?  Either "conditional" ones or the "diagram disable" structure?


Anything inside those is removed from an EXE before compiling normally, but may be left in when debugging is enabled.  If there's something in those that it doesn't like, maybe that's it?

0 Kudos
Message 4 of 5

I do use disable structures but I don't quite understand why those would cause these symptoms. The disabled code would still be disabled in the EXE so should not have any influence on the execution.

0 Kudos
Message 5 of 5