Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Disposing/creating many images too fast


Are you leaking widgets? (ie. hiding rather than disposing them).  Note that disposing an item (such as a TabItem) does not dispose the control associated with the item.

Are you seeing https://bugs.eclipse.org/bugs/show_bug.cgi?id=77403 ?  It's not clear the graphics resources are disposed right away on every operating system.  I'm assuming Windows.  Do you get back to the event loop regularly?

How about constructing a very simple example that allocates and frees the SWT objects in question and see whether that leaks?



lipe! <lipeandrade@xxxxxxxxx>
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx

10/17/2006 02:30 PM

Please respond to
"Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>

To
swt-devlist <platform-swt-dev@xxxxxxxxxxx>
cc
Subject
[platform-swt-dev] Disposing/creating many images too fast





Hi all,

On my application i need to refresh many images frequently.

Then i figured something: when i invoke dispose() on my resources,
they arent freed immediately, unabling me to recreate them (i am
getting "No more handles").

I investigated with Sleak and theres no memory leaks. Everytime the
number of objects are the same.


Any workaround?
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top