The main application kicks off a thread to receive UDP datastreams. The data received is displayed (after some processing), on various modeless dialog windows.
Now the user may close and reopen these modeless dialog windows, however when the user wishes to terminate the application, via a push button on the main modal dialog window, this is my problem.
I get an Assertion error, not tracked it down yet, but now starting to put code in to:-
1. terminate the UDP Reading thread
2. Turn off the updating of these modeless dialogs when they are closed (set the pointer to NULL and delete the 'this' when closed).
But still getting the error, so looking for a way to terminate the task and do the housekeeping.
Sweep.