Re: Problem with C# not calling MC++ destrcutor
- From: "Lebesgue" <lebesgue@xxxxxxxxx>
- Date: Fri, 2 Feb 2007 19:28:29 +0100
I'm pretty surprised to hear that it is possible for my Finalizers to
not be called at shutdown. If I am being required to manually free up my
resources, what is the point of GC?
GC is here to clean up unreferenced _memory_. You should deal with other
(unmanaged) resources using the dispose pattern in C#. There has been a long
thread recently (named C++/CLI is the way to go) where a reference counted
model for disposing unused resources in C# has been proposed.
Can you show us your finalizers? My guess is you are trying to use them the
way they were not meant to be.
.
- Follow-Ups:
- Re: Problem with C# not calling MC++ destrcutor
- From: Jeremy Chaney
- Re: Problem with C# not calling MC++ destrcutor
- References:
- Problem with C# not calling MC++ destrcutor
- From: Jeremy Chaney
- Re: Problem with C# not calling MC++ destrcutor
- From: Göran Andersson
- Re: Problem with C# not calling MC++ destrcutor
- From: Jeremy Chaney
- Problem with C# not calling MC++ destrcutor
- Prev by Date: Casting an enum, skips one for no reason?
- Next by Date: Re: Casting an enum, skips one for no reason?
- Previous by thread: Re: Problem with C# not calling MC++ destrcutor
- Next by thread: Re: Problem with C# not calling MC++ destrcutor
- Index(es):
Relevant Pages
|