09-29-2017 07:44 AM
Hello all,
I added SetStdioWindowOptions() calls to get rid of pesky console popups while debugging, but when I ran the same prog on Linux, it just crashed:
#include <utility.h> int main(void) { SetStdioWindowOptions (1000000, 0, 0); return 0; }
Compile with cvicc, execute:
$ ./test Segmentation fault (core dumped) $ gdb ./test core.2881 (gdb) bt #0 0xf762571b in ?? () from /usr/local/lib/libcvi.so #1 0xf72ae597 in ?? () from /usr/local/lib/libcvi.so #2 0xf741372b in SetStdioWindowOptions () from /usr/local/lib/libcvi.so #3 0x0804e741 in main () at /tmp/test.c:3
10-02-2017 06:04 PM
Hi gdargaud,
If you remove that function from your code does the program run?
10-03-2017 07:22 AM
Well, duh, with just "return 0" in the code, I certainly do hope that it runs !
Anyway, since that function is only useful on Windows, I just surrounded it with a #ifdef _WINDOWS
10-03-2017 09:39 AM
That function should probably be added to this help doc.