Re: Problem with C# not calling MC++ destrcutor



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.


.



Relevant Pages

  • Re: Garbage Colletor
    ... Not only is it much less error-prone than people ... the RAII paradigm itself is a cleaner design compared to ... It's extremely easy to handle resources in C++ as you stated but the ... By clean I mean it's ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Callback Function requery problem in A97
    ... this event is thus to clean ... and un-load all the stuff you did in the initialize event. ... all those resources and memory and reocrdsets you ... That event will fire when you close the form. ...
    (comp.databases.ms-access)
  • Deleted users show in Project Owners drop down
    ... Resources in the the PWA Admin area called "Clean up Project Server ... database". ... currently in a test environment, it needs to become a production environment ...
    (microsoft.public.project.pro_and_server)
  • Re: Goto still considered helpful
    ... I actually found your version a little tricky to read. ... which keeps the resource clean up in one ... and the pattern scales well if more resources are added to the ... goto done; ...
    (comp.lang.c)
  • [Fwd: Re: spurious messages]
    ... "Warning processor level 4 interrupt not serviced" scrolling on the ... a race condition at boot, e.g., one or more resources taking longer than ... the next step is to boot with full-on diags (OBP: ... so be sure to clean the inside of the case thoroughly ...
    (SunManagers)