Laurent Veilleux wrote: > > I try to see what it happens in my app and note in the wxArt2D aui > Sample but i'dont see why
I did not write that sample, and i not studied it. Do you need Aui?? There is another sample with tabs. Tabframe sample is much simpler. > > perhaps it's because i didnt 'implement all the stuff of the EditorFrame > class which is the base classe of the MyFrame class in the original sample > but I checked in debug mode and only EditorFrame destructor is called > when i close my app EditorFrame is from a sample in the docview samples , and not needed for a tipical canvas application. a2dEditorFrame ( canedit.cpp ) can be compared to it but for advanced drawing using wxCanvas in this case. > > The problem is that this sample has 2 viewConnector :/ which defines > twice the same sample and i only kept the notebookconnector from the > wxArt2d aui sample > but i'am not sure that it's enough to make it run correctly Better forget about this Aui for the moment. The AUi samples was based on the tabframe sample. > > should i implement OnActivate and OnActivateViewSentFromChild from > EditorFrame in my own frame ?? No, the last one happens in here already: void a2dDocumentFrame::OnActivateViewSentFromChild( a2dViewEvent& viewevent ) If you have memory leaks, in a2dCanvasDocument, you can test by a breakpoint in its destructor. If that one is not reached, so all in it will be memory leaks too. For the rest i can't say much about it. Klaas -- Unclassified ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Wxart2d-users_dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
