I've been trying to create a VI that when compiled into an exe can write messages to the console standard out in a command line.
I've reviewed several examples online, but when I try to use methods that involve .NET, Labview (or the exe I create) crashes once the vi stops/closes.
I've created a very simple program to illustrate the issue. The program Test_StdOut.exe when called from the command line, writes "I'm Alive" to the terminal and waits 5 secs. After this the program crashes.
Can someone help me understand what this "Access violation" error is?
To reproduce:
1. Unzip Test StdOut.zip
2. open a cmd prompt
3. cd to the unzipped directory
4. locate the simple bat file here: ..\Test StdOut\builds\Test StdOut\run.bat
5. You should see the same output as in my attached screen shots.
Thanks,
James