c# working set memory keeps increase with every call to a method
I programmed a c# program that has a timer.
this timer will call a method.
but every time when the method is called,
the working memory of that program keeps increase
does anyone know what is wrong with my program
theLizardPosted Oct 30, 2009, 3:23 AM
You obviously have memory leak but without seeing code it would be dificult to determine where the problem is.
gohPosted Oct 30, 2009, 3:11 AM
theLizardPosted Oct 30, 2009, 3:05 AM
you must also first check that these are not null otherwise you will get errors.
naura paxPosted Oct 30, 2009, 3:02 AM
are you building your application in debug mode? if yes then you should try to build it in release mode and then deploy, that might just make a difference.
gohPosted Oct 30, 2009, 2:48 AM
naura paxPosted Oct 30, 2009, 2:42 AM
gohPosted Oct 30, 2009, 2:42 AM
gohPosted Oct 30, 2009, 2:41 AM
theLizardPosted Oct 30, 2009, 2:35 AM
gohPosted Oct 30, 2009, 2:32 AM
gohPosted Oct 30, 2009, 2:27 AM
naura paxPosted Oct 30, 2009, 2:19 AM
Have you set the tick event of timer at runtime if yes then exactly at which event?
if you have subscribed to event handler using code then you can unsubscribe it at that time:
timer1.tick-=new System.EventHandler(this.timer1_Tick);
timer1.tick+=new System.EventHandler(this.timer1_Tick);
hope i'm close.