[Mono-list] issue with pinvoke & memory leak

2004-06-02 Thread Chris Turchin
hi, i have the following sitution (not directly mono related but maybe interesting regardless since a lot of pinvoke is going on here) that I do not know how to handle cleanly: i have been playing with a wrapper for an image library with the following method: private static extern FIBITMAP Free

Re: [Mono-list] issue with pinvoke & memory leak

2004-06-02 Thread Ravindra
Hello, On Wed, 2004-06-02 at 17:00, Chris Turchin wrote: > i have been playing with a wrapper for an image library with the following > method: > > private static extern FIBITMAP FreeImage_Rescale(FIBITMAP dib, int dst_width, > int dst_height, FilterOption f

Re: [Mono-list] issue with pinvoke & memory leak

2004-06-02 Thread Chris Turchin
Hi Ravindra, again, thanks for the tip. I checked and the finalizer was there only it was not getting called (or not often enough) - i added a GC.Collect() call to my test class and it worked. Thanks again! Regards, --chris On Wed, 2 Jun 2004, Ravindra wrote: > Hello, > > On Wed, 2004-06-02

Re: [Mono-list] issue with pinvoke & memory leak

2004-06-02 Thread Jonathan Pryor
On Wed, 2004-06-02 at 08:09, Chris Turchin wrote: > Hi Ravindra, > > again, thanks for the tip. I checked and the finalizer was there only it was > not getting called (or not often enough) - i added a GC.Collect() call to my > test class and it worked. Don't call GC.Collect(). Please. Under .N