Crash -> no finalize

  • Thread starter Thread starter myname
  • Start date Start date
M

myname

Hello,

I noticed that when there's a crash in my programs,
the finalize methods of my objects are not called
(the memory is freed, but some things are not done,
like deleting files or tables).

Of course, I should handle all the exceptions,
but in the case I forget some of them,
is there any way to make sure the finalize
methods are always called ?

Thanks !
 
Myname,

What do you call the finalize methods?
Are you sure your problem is about Visual Basic Net?


Cor
 
myname said:
I noticed that when there's a crash in my programs,
the finalize methods of my objects are not called
(the memory is freed, but some things are not done,
like deleting files or tables).

Of course, I should handle all the exceptions,
but in the case I forget some of them,
is there any way to make sure the finalize
methods are always called ?

No, you cannot, because the process can be terminated using the task manager
immediately. What you can do is check data integrity upon startup.
 
Back
Top