Dont send error after application closes
-
Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
CFrameWnd::OnClose();
in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance
-
Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
CFrameWnd::OnClose();
in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance
neha.agarwal27 wrote:
I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
How are you creating this frame. Make sure that you always "new" CFrameWnd objects. Don't create CFrameWnd objects on stack since PostNcDestroy(unless you override) tries to delete the "new"ed object. Anyway I am just trying to guess the reason. This could be one of them.
Nibu thomas A Developer Code must be written to be read, not by the compiler, but by another human being. http:\\nibuthomas.wordpress.com
-
Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
CFrameWnd::OnClose();
in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance
-
Hello all, I have made a SDI application it consist of various threads running together, now my problem is when i close the frame it gives a Don't send error. I close frame using this
CFrameWnd::OnClose();
in MainFrame Class.... Can anybody please tell me that why this Don't send error is coming. thanks in advance
you should replace it with this->PostMessage(WM_CLOSE, 0, 0); it would prevent error in case you were in the middle of something