08-26-2019 09:46 AM
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:
server.app.propertiesEnabled=True
server.tcp.enabled=True
server.tcp.port=3301
server.tcp.serviceName=""
server.vi.access="+*"
server.vi.propertiesEnabled=True
WebServer.TcpAccess="+*"
WebServer.ViAccess="+*"
DebugServerEnabled=True
DebugServerWaitOnLaunch=False
Any ideas?
08-26-2019 11:28 AM
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.
08-26-2019 12:10 PM
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.
08-26-2019 12:47 PM
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?
09-03-2019 10:18 AM
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.