Laurent Veilleux wrote: > I have a lot of memory leaks in my prog and they come from canvas > layer stuff like that > I know that the lib has no (or few =) ) memory leaks so I would like > to know what kind of stuff > I have to delete manually (doc ? view ? canvas ?)
This depends on your program, you have to be aware that many thing in a docview setting are deleted automatically. docs, views, and canvas. But there a connectors plays an important role. See vdraws its connectors. Read all in the docview framework on closing. Because closing a document leads to a range of events to view and connectors, and you can decide what to do after a close. OnCloseWindow in docview for instance in a frame per document setting destroys the frames. Because many thing are smart pointers, you must be sure to release all references (not delete), only then it will be deleted. That all i can say about it. I will be gone for the coming weeks, starting now. Regards, Klaas ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Wxart2d-users_dev mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wxart2d-users_dev
