Debugging

Tech-Archive recommends: Speed Up your PC by fixing your registry



Hi,

Im running a .net program I have made and all runs fine, but randomly it
will reset itself without warning . The program is a touchscreen program and
runs full screen forms ( borderless ). My first thought was a memory leak so
I have been watching memory usage via the task manager. It seems that
everytime I perform an action in the program ( all action use datasets and
data fetches or local xml fills ) the memory usage increases by 5mb.

As a test I performed about 70 actions with the program and at the end found
that the memory usage was up close to 150mb. Knowing that the Garbage
Collector should be collecting any memory that is out of scope ( all forms
containing the datasets are closed ) I left the program running on the login
screen for 15mins. When I came back I was presuming that the disgard memory
would have been collected. But It hadnt, strangly enough the only way the
mem used would drop was when I minimized the program and a few minutes later
maximized it again.

What im asking is :

1.) Does it sound like a memory leak ? or am I wasting my time looking for a
leak as this is perfectly normal action for a program ?

2.) If its not a memory leak - what could be causing my program to reset
itself ? on the initial form I added an onclose check ( yes / no msgbox ) as
a test, but when it reset this check doesnt show.

3.) If it is a memory leak how do I begin tracking it ? I have no experience
of finding this kind of error, as the usual stop and step into obviously
wont work.

Thanks for reading

Jon 'Very Frustrated' Vaughan


.



Relevant Pages

  • Re: Oyster Card System Failure
    ... I've not yet come across r/w memory that can't be reset if theres ... some of the memory as read only - IIRC sector 0 (which contains the ... Initially the card is created with this address as 0. ...
    (uk.transport.london)
  • Re: off screen plain
    ... created a surface (soon to maybe be a memory stream) of 1024x14000. ... reset wouldn't let me lock the texture anymore. ... What if the device is lost for sometime. ...
    (microsoft.public.win32.programmer.directx.managed)
  • Re: AVR ATmega644 mysterious reset ?
    ... of the program memory and just runs until it returns to 0x0000 (Reset ... Further more all volatile memory is cleared when the problem ... instruction of your startup would the observable results be any ... basic setup (such as stack position) before memory clearing. ...
    (comp.arch.embedded)
  • Re: PPC not being recognized - sort of!
    ... The memory should not be a problem either. ... very little installed - thanks to a Hard Reset three weeks ago. ... PPC and re-establish the connection. ... >>> Helio Diamant ...
    (microsoft.public.pocketpc)
  • Re: Help! Tungsten T Constantly Resets
    ... Resets are used in operating systems that leak ... I reset on occasions, but only when symptoms of weakness begin to arise. ... I agree that leaked memory is a main concern. ... Roy S. Schestowitz | Useless fact: 85% of plant life in in the oceans ...
    (comp.sys.palmtops.pilot)