Stefan Langer wrote:
> If you go into the java-specification you will notice that there is no guarantee
>that the finalize() method will actually be called by the gc. If you want to make
>sure finalize is executed put it in a different method and call it from a finally
>block.
>
> SOemthing like this
>
> void myfinalizer()
> {
> // code goes here
> }
>
>
> // this is the actually closing code
> try
> {
> // some code that exits the program/session
> }
> finally
> {
> myfinalizer();
> }
>
> Hope that helps
>
> STefan
I know this, but i think that when program is near OutOfMemoryException
then jvm should do everything to release memory (read: do gc()). Anyway
in this case everything works fine (and finalizers() are called) to some
point, after it no finalize() is called. For me it looks like bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]