Hello Klaas, Bionic, thanks to you two! I crossread the new documentation when Klaas announced it. But now I did not remember it and wondered where sth. could be written ... :-(
Took again a look at the new tabframe sample as well. Looks like I have some work around the OnCloseWindow implementation. Working from home in a two person project sometimes is really hard. There is nobody to ask the "stupid" questions. My junior developer can ask me. Whom can I ask ... So I am really grateful for your support! Regrads, Michael Klaas Holwerda schrieb: > Michael Stratmann wrote: >> Hello, >> >> I took some parts of the mars app example (mainly the page stuff) and >> put it in my own app. >> >> Just one doc, one canvas, one view, ..., on one page of my aui >> notebook. So that I could draw. Then I close my app. Visual studio >> prints a real long list of memory leaks. > > Very likely the a2dCanvasDocument is not released. > The whole closing process is complicated see here: > http://wxart2d.org/moin/ClosingDocviewParentChild > > > Put breakpoints and see if you pass the destructor of the document. > And the close menu in mars > > AddCommandToMenu( file_menu, _("&Close"), _("Close file"), new > a2dCommand_FileClose() ); > > leads to: > > bool a2dDocumentCommandProcessor::FileClose( bool force ) > > Here the RemoveDocument( doc ) in there releases the document. > > void a2dDocument::OnCloseDocument( a2dCloseDocumentEvent& event ) > > calls: > > DisConnectAllViews(); > > void a2dView::OnDisConnectView( a2dDocumentEvent& event ) > > bool a2dView::Close( bool force ) > > void a2dDocumentFrame::OnCloseView( a2dCloseViewEvent& event ) > > Etc. > > But breakpoints and study stack, > > Regards, > > Klaas > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > > > ------------------------------------------------------------------------ > > _______________________________________________ > Wxart2d-users_dev mailing list > Wxart2d-users_dev@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Wxart2d-users_dev mailing list Wxart2d-users_dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev