G
Guest
Hi,
I have a memory leak (or at least had one) in my App. I've now added several
Dispose methods to different places, eg I now dispose all SQLCommands,
DataAdapters etc. So in theory I have fixed the problem.
But how can I verify that, since the GC process runs whenever it feels like
it. If I look at task manager, my App still consumes something like 4 Mb on
each transaction the user does, and if I then stop and wait for the memory to
be reclaimed, it doesn't seem to happen. But if I then insert a breakpoint
into the source, and run another transaction step by step, there is a good
change that somewhere in the middle of that the GC kicks in and suddenly I
have a 20 Mb something smaller momery footprint. My problem is that I can't
see that happen in normal operation, only when I step through the code step
by step.
Petri
I have a memory leak (or at least had one) in my App. I've now added several
Dispose methods to different places, eg I now dispose all SQLCommands,
DataAdapters etc. So in theory I have fixed the problem.
But how can I verify that, since the GC process runs whenever it feels like
it. If I look at task manager, my App still consumes something like 4 Mb on
each transaction the user does, and if I then stop and wait for the memory to
be reclaimed, it doesn't seem to happen. But if I then insert a breakpoint
into the source, and run another transaction step by step, there is a good
change that somewhere in the middle of that the GC kicks in and suddenly I
have a 20 Mb something smaller momery footprint. My problem is that I can't
see that happen in normal operation, only when I step through the code step
by step.
Petri