Re: Window Appears Briefly Then Disappears
- Posted by ChrisB (moderator) Jul 01, 2019
- 1302 views
Hi
A useful debug tool is the console. You want to find where the program gets to before crunching out.
Put a
puts(1, "Got here\n")
at various points in the program, and it will print it to the console when it gets there. Obviously if it doen't get there, you won't see it.
You can also use
? asequence
or
printf(1, "%s, %d\n", {astring, anumber} )
to print out some values
These will appear in a console window (possibly behind your main window - check the taskbar)
When an Eu progrom crashes in the middle of a dll call, you won't get an error message, and sometimes it's useful to find which call is causing the issue.
also have you tried replacing
whiel not wndowshouldclose() do with while 1 do ?
Cheers
Chris