March 07, 2008 Re: debug warnings | ||||
---|---|---|---|---|
| ||||
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 |
March 08, 2008 Re: debug warnings | ||||
---|---|---|---|---|
| ||||
Jesse Phillips schrieb:
> Interesting, I might look into porting that, but right now finals are coming up. (I realize there's no hurry)
You made me curious about it. Then i noticed, its easy to do, so you can find it now in dwt-addons and a SleakExample in dwt-samples.
Very helpful, thanks for bringing this up.
|
Copyright © 1999-2021 by the D Language Foundation