Memory leak?

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
*-----------------------*
 
N

Nicholas Paldino [.NET/C# MVP]

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).
 
F

fmilano

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
*-----------------------*
 
W

Willy Denoyette [MVP]

But still this doesn't explain the so called "memory leak" you are
observing.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top