If I understand you correctly, you are probably getting the following exception:
org.eclipse.swt.SWTError: No more handles
You may be creating resources (such as Font
, Image
or GC
objects) that you aren't correctly disposing. You might want to take a moment to read through the SWT guide on Managing Operating System Resources.
To determine if this is indeed the case, I can recommend this useful article: Diagnosing Handle Leaks in SWT/RCP Windows Applications. A colleague also highly recommends Sleak, a SWT-focused application that can actually inform you which resources are remaining in residual memory.