Killing a DDE Debug session
Bill Antonia (2466) 130 posts |
Is it possible to kill a DDE debug session after the application has been sent a quit message? Currently, with the code I’m writing, if I do a ctrl-Q when the debug windows are open, all is well. However, if I send a quit message from the Task window it leaves the debug session open and the only way to clear it is to restart. |
Stuart Swales (8827) 1357 posts |
How is your application responding to the quit message? If you try adding an exit() before starting up your main event loop does it return to the debugger? |
Bill Antonia (2466) 130 posts |
The application dies but doesn’t return to the debug session and leaves it open. I am using the RPCemu as it’s more portable than using a Raspberry Pi, would that make a difference, the debug windows are a bit difficult to handle on the RPCemu anyway, the active areas of the scrollbars and other controls tend to be pinpoint and inside those showing on the screen. |
Bill Antonia (2466) 130 posts |
Ahh… In my closeDown() method I was calling wimp_close_down(int) but not calling exit(int). Now both are called all is fine. Problem solved thank you. |
Stuart Swales (8827) 1357 posts |
Tried putting a breakpoint on the address ‘exit’ ? [You will have to do this after the first Continue that stops at ‘main’ as the breakpoint is otherwise over-written by the Stubs initialisation] [Edit: this was posted after Bill had fixed the issue.] |