When the JVM terminates, are all operating system handles (font, images) automatically released, even when there is no explicit dispose? Or are the non-disposed operating system handles in use until the next OS restart?
Can I ask what was the problem/issue that triggered your question?
On Windows we have used GDI View http://www.nirsoft.net/utils/gdi_handles.html to observe the GDI resources allocated to a Java application. For other OS's I do not know similar tools and I would appreciate if somebody will point me to such tools.
Thanks! I had the feeling that closing the process would also reclaim all resources but was never able to find the written rule.
The operating system frees all of a program's resources when the program exits. Why not just rely on this? Operating system resources are not infinite. If your program doesn't free up resources as they are no longer needed, it can run out of resources. It can also cause other programs to run out of resources. So waiting until the program exits to free up resources is generally a bad idea. Leak tools exist to help detect resource leaks. You can use the Sleak tool to look for leaks in your SWT application.