Memory leak?

  • Thread starter Thread starter fmilano
  • Start date Start date
F

fmilano

Hi,

I'm developing a database sincronization application. I developed it
and tried it using just console input and output (a simple console
application). As the sincronizer is working OK I want to use it from
a nice Windows Application.
I created a new Windows Application project, added some controls and I
wrote this event handler:

private void Init_Click(object sender, System.EventArgs e)
{
Sincronizer Sinc = new Sincronizer();
Sinc.Start();
}

Sinc.Start() runs all the sincronization tasks. The problem is that
when I run it, memory starts growing really fast (from 200Mb to 600Mb
in seconds). I really don't know what I'm doing wrong, since the
sincronizer object worked perfectly in my console application.

I would really appreciate some help

thanks,

Federico

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
fmilano,

Without knowing what the Sincronizer does (are you sure you spelled that
correctly), it's nearly impossible to say.

Is the Start method sycnhronous? If so, then this could be an issue
(since you are hanging the UI thread).
 
Thanks for your answer. Yes, Start() is sycnhronous so maybe I'm
hanging the UI thread...how can I avoid that if I'dont want to modify
synchronization engine?

Thanks,

Federico

PS: Yes, Sincronize is wrong...Synchronizer is right.

*-----------------------*
Posted at:
www.GroupSrv.com
*-----------------------*
 
But still this doesn't explain the so called "memory leak" you are
observing.

Willy.
 
Back
Top