I've heard other people say that the 'Mem Usage' is not an accurate view of
the memory usage, but I don't buy that - my application runs increasingly
more slowly every time the DataSet is filled (the task manager's 'Mem Usage'
increases) until the application is virtually unusable. Also, other tasks on
the computer are affected (run slow) at this point. Once I close my
application, all response returns to normal. The memory is definitely being
allocated and not returned, no matter what people say about task manager not
being an accurate measure of memory usage...
I need to know if someone has any knowledge of this issue with DataSet
memory not being released.
Thanks all,
-Peter
"Miha Markic [MVP C#]" wrote:
> Hi Fith,
>
> I don't think that Task Manager is a proper tool for monitoring memory
> usage.
> Instead, try one of the memory profilers - there are free ones:
>
> Allocation Profiler
> http://www.gotdotnet.com/Community/U...D-BFD7CB3154AC
> Devpartner Community edition
> http://www.compuware.com/products/de...rtner&sf=1&p=0
>
> and commercial ones:
> AQTime
> http://www.automatedqa.com/products/aqtime/index.asp
> ..NET Memory Profiler
> http://www.scitech.se/memprofiler/
>
> And others...
>
> --
> Miha Markic [MVP C#] - RightHand .NET consulting & development
> www.rthand.com
> Blog: http://cs.rthand.com/blogs/blog_with_righthand/
> SLODUG - Slovene Developer Users Group www.codezone-si.info
>
> "Fith" <(E-Mail Removed)> wrote in message
> news:EFA1B9FC-4FA4-4C40-911D-(E-Mail Removed)...
> > Hello -
> >
> > I've developed an application which uses DataSets which are local to
> > specific methods - so they should go out of scope when the form they are
> > on
> > is closed. I am finding that while monitoring the memory usage through
> > task
> > manager, the memory will increase while the dataset is filled, but memory
> > is
> > never released when the form is closed. Even when using the Dispose()
> > method
> > of the DataSet, as well as explicitly calling GC.Collect() and
> > GC.WaitForPendingFinalizers(). After searching the web for hourse, I
> > cannot
> > find anyone who can solve this problem. Does anyone know how to fix this?
> >
> > Thanks,
> >
> > -Peter
>
>
>