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

--
Unclassified


------------------------------------------------------------------------------------------------------------
Disclaimer:

If you are not the intended recipient of this email, please notify the sender and delete it. Any unauthorized copying, disclosure or distribution of this email or its attachment(s) is forbidden. Thales Nederland BV will not accept liability for any damage caused by this email or its attachment(s). Thales Nederland BV is seated in Hengelo and is registered at the Chamber of Commerce under number 06061578.
------------------------------------------------------------------------------------------------------------

begin:vcard
fn:Klaas Holwerda
n:Holwerda;Klaas
note:Unclassified
version:2.1
end:vcard

------------------------------------------------------------------------------
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

Reply via email to