throw exception in the finalize

From: z. f. (zigi_at_info-scopeREMSPAM.co.il)
Date: 07/05/04


Date: Mon, 5 Jul 2004 11:38:28 +0200

in vb asp.net page i'm overriding the finalize method in order to make
cleanup.
if i throw exception there it is not seen on the page.
probably because the page has already sent to the client.
is there a way to throw exception on the finalize method in order to check
that objects were closed, but how do i trace this exception?

TIA, z.



Relevant Pages

  • Re: exception inside constructors and finalize
    ... > 1.how can we handle exception inside constructors and finalize method? ... try/catch or (for constructors) throws clause - as usual. ...
    (comp.lang.java.help)
  • exception inside constructors and finalize
    ... 1.how can we handle exception inside constructors and finalize method? ... Prev by Date: ...
    (comp.lang.java.help)
  • Re: Is this possible...
    ... don't throw an exception, instead of calling log out, set it to null anyway. ... Then in the finalize method, put the code that has to happen on logout, so ... >> You could return empty values but it might be better to throw an ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Returning external resources and Exceptions
    ... > when an exception is thrown. ... there remains the problem of code duplication. ... The same is true for most other cleanup methods in the API: ...
    (comp.lang.java.help)
  • Re: Why finally?
    ... other than organizational aesthetics ?? ... First of all, its not very common, or shouldn't be common to use catch all ... coders know that any cleanup will be within the finally block. ... An exception is raised in the catch block, finally will be executed, your ...
    (microsoft.public.dotnet.languages.csharp)