debug warnings

Frank Benoit keinfarbton at googlemail.com
Fri Mar 7 00:34:04 PST 2008


Jesse Phillips schrieb:
> One of the things in SWT is that there are objects that need to be 
> disposed of after creation. I first am wondering if this still applies, 
> which I think it does. The other things is that I think that a debug 
> statement could be thrown in that when enabled would print a massage 
> saying, "object [type] that needs disposed of has been created." then 
> dispose could have, "object [type] has been disposed." This would allow 
> tracking of undisposed objects.
> 
> I'd be willing to add it, just want to get opinions.

http://www.eclipse.org/articles/swt-design-2/swt-design-2.html

I haven't looked at the sources, but perhaps it is possible to port the 
Sleak tool.
http://www.eclipse.org/articles/swt-design-2/sleak.htm


More information about the Digitalmars-d-dwt mailing list