Re: Memory leak when using OleDb



Well... the problem I have is in a huge application that creates a lot of
other objects and uses a lot of memory. And I can see that the memory does
sometimes "go down a bit", but that is only a couple of megabytes, and then
it startes growing again. The problem is that even after running for 6-8
hours the huge memory chunks are still not released.


Arild

"Göran Andersson" <guffa@xxxxxxxxx> wrote in message
news:%23mG0Ll8bGHA.3888@xxxxxxxxxxxxxxxxxxxxxxx
Probably not. That doesn't affect how the objects are disposed and
dereferenced.

Is it a real problem? The main reason that the code is using a lot of
memory is that you are creating a lot of connections and very few other
objects. In a real situation you would create a lot of other objects that
would cause garbage collections to occur more frequently.

Keith Patrick wrote:
Would putting those wrapper declarations into "using" blocks encourage
the GC to be a bit more aggressive with collection?


.



Relevant Pages

  • Re: Templates and access checking
    ... On Tue, 4 Jan 2005, Victor Bazarov wrote: ... I tried to provide a small compact code sample. ... The 'real' problem involves ptrs/dynamic memory. ... that's why you need to state the real problem. ...
    (comp.lang.cpp)
  • RE: USB Hard Drive Problems
    ... If you have the chance I would suggest building a custom kernel with the ... The only real problem ... >If I plug my memory stick into the USB port, ...
    (freebsd-questions)
  • Re: Save an array to memory for another program to read it
    ... I need the program to store into memory this array, end itself and when immediately runs again to load this array again from the memory. ... have said "subroutine" so what it required is to read a bit further into ... It is the old question of whether the stated problem is the real problem ...
    (comp.lang.fortran)
  • Re: "Disk Image" alike for Pocket PC Mobile 5 - Installation of big amount of devices
    ... isn't true - it even changes over hard resets and can freely be loaded. ... software that is specific for USB host capable PPCs and Phone Edition ... image that simply loads too much into memory for a less memory-capable ... I agree that it is not a real problem, it just may not be the results ...
    (microsoft.public.pocketpc)
  • Re: insufficient memory OE6
    ... The short of memory / disk space error is a sort of drop through catch all ... that doesn't usually point to the real problem. ... > another error pops up saying there is insufficient memory ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)