Re: Pls HELP!- DataSet Inherited object not finalizing
From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 02/15/05
- Next message: Ajay Kalra: "Re: Circular Referencing in C#"
- Previous message: Laxmikant Rashinkar: "Re: SocketServer design"
- In reply to: MuZZy: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Next in thread: MuZZy: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Reply: MuZZy: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Reply: Daniel Jin: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 15 Feb 2005 13:51:34 -0500
MuZZy,
I am curious, what are you doing with the data set which requires
explicit management of memory in the finalizer and Dispose? Considering
that it should all be managed objects, you shouldn't have an issue. If you
just release the reference, let GC handle the memory.
--
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
"MuZZy" <leyandrew@yahoo.com> wrote in message
news:1ZmdnbjcXYP5oo_fRVn-qA@comcast.com...
> Willy Denoyette [MVP] wrote:
>> "MuZZy" <leyandrew@yahoo.com> wrote in message
>> news:UeSdnXyHxYnttI_fRVn-gQ@comcast.com...
>>
>>>Hi All,
>>>I got a issue here and hope someone can help me:
>>
>>
>>>I guess my mistake is in the way i inherit from DataSet, but can't figure
>>>out what exactly..
>>>
>>>Any ideas would be appreciated!!!
>>>
>>>Thank you,
>>>Andrey
>>
>>
>> This is the intended behavior as the Dataset ctor calls
>> SuppressFinalize(this).
>> What exactly are you trying to achieve?
>>
>> Willy.
>
> Thank you for reply Willy!
>
> Damn, it that's true, i'm screwed!
> The thing is that we have the whole framework for our applications, and a
> class inherited from DataSet is the core class there.
>
> I just came to the company and i was assigned the bug - memory leaks. I
> found that it happens because objects of this class don't get finalized -
> finalize function has a lot of memory cleaning.
>
> The worst thing is that i can't move all the stuff in Dispose(), as
> Dispose() is not called for the object and to find all the places where to
> put Dispose() would take months if not years...
>
> Can i re-register the inheritd class for the finalization?
>
> Thank you,
> Andrey
- Next message: Ajay Kalra: "Re: Circular Referencing in C#"
- Previous message: Laxmikant Rashinkar: "Re: SocketServer design"
- In reply to: MuZZy: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Next in thread: MuZZy: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Reply: MuZZy: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Reply: Daniel Jin: "Re: Pls HELP!- DataSet Inherited object not finalizing"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading