Re: throw exception in the finalize
From: avnrao (avn_at_newsgroups.com)
Date: 07/05/04
- Next message: Eliyahu Goldin: "Re: Folder browsing"
- Previous message: Jonathan Dixon: "Folder browsing"
- In reply to: z. f.: "throw exception in the finalize"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Jul 2004 18:06:58 +0530
hi z.f.
I dont know your requirement clearly but based on the fact of finalizer..you
dont have control as to when it gets called. hence try avoid finalization
usage
and use IDisposable interface implementation instead.
Av.
"z. f." <zigi@info-scopeREMSPAM.co.il> wrote in message
news:uSF6evmYEHA.3596@tk2msftngp13.phx.gbl...
> 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.
>
>
- Next message: Eliyahu Goldin: "Re: Folder browsing"
- Previous message: Jonathan Dixon: "Folder browsing"
- In reply to: z. f.: "throw exception in the finalize"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|