One user community tend to have vast datasets, with many thousands of items to be displayed in the layer manager.
They've had Debrief freezing, displaying a 'SWTError: No more handles'.
I've investigated the leak (suspected to be associated with the Layer Manager), and found an instance where I was doing a createImage for each item displayed in the Layer Manager. I should be getting these items from a cache/registry. I fixed the problem, then found out about 'sleak' the SWT Leak Detector.
I then re-inserted the problem, checked the monster leaks with sleak, fixed the problem, and checked that the problem had gone away.
Here's an article on it , and a more formal article.
It worked just great.
Subscribe to:
Post Comments (Atom)
don't forget to add swt.tools to the runtime plugins
ReplyDelete