Re: Memory leak when using OleDb

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Then you should use a profiler to see what it is that really uses up the memory. Even if your test code does use a lot of memory, it's not certain that the live application uses memory for the same reason.

Arild Bakken wrote:
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: Relocating application architecture and compiler support
    ... and assuming that your memory-testing function can restore the ... >uses its own area of memory. ... One possibility is an interrupt driven test which incrementally steps ... a second copy of the test code is ...
    (comp.arch.embedded)
  • Re: Need test for program loader accuracy; IPSM
    ... program execution - the same thing that I am doing! ... code on a single memory page and I could tell A ran correctly then I could ... that would at least detect some gross obfuscation. ... hoping for a solution that wouldn't require the test code to be inside the ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: Need test for program loader accuracy; IPSM
    ... program execution - the same thing that I am doing! ... code on a single memory page and I could tell A ran correctly then I could ... that would at least detect some gross obfuscation. ... hoping for a solution that wouldn't require the test code to be inside the ...
    (microsoft.public.windowsce.embedded)
  • Re: Need test for program loader accuracy; IPSM
    ... program execution - the same thing that I am doing! ... code on a single memory page and I could tell A ran correctly then I could ... that would at least detect some gross obfuscation. ... hoping for a solution that wouldn't require the test code to be inside the ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Memory leak when using OleDb
    ... other objects and uses a lot of memory. ... Is it a real problem? ... would cause garbage collections to occur more frequently. ... Keith Patrick wrote: ...
    (microsoft.public.dotnet.framework)