I've noticed that on JDK 1.5 if clean up (GC) occurs (you catch the out of memory exception and then free up the objects in question),( and then allocate another object forcing GC) the next occurrence does not generate another heap dump (I want one each time).
Is there some way to make it do this again and again?
Thanks,
-Greg Bishop
Greg Bishop, Senior Software Engineer
CESI, 12000 Research Dr. Orlando Florida
1. OutOfMemoryError is an ERROR not and Exception. It descends from java.lang.VirtualMachineError.
2. I would certainly not rely on the state of the program after an Error is thrown.