Strange problem after 5/6 hours of execution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi to all:
I have build an application with Visual Basic .NET, to start SQL
Server replication. For each replication initiated (50 replication each 10
minutes), I create a new thread.
The application works great for 4 or 5 hours, but after that, the refresh of
the screen stops, and any other program I run (like internet explorer) won't
refresh.
Also, In my application I use a Timer control, and it won't run any tick
event.

I have make sure that all the threads I open to start replication are close
once replication finishes. In the Thread window in my debug, I can see that
the threads are closed.

I hope some one can give me a clue. My application needs to be running 24
hours, so I'm in a problem.

What should I check in the code?

Thanks in advanced to all.
 
Rodrigo said:
Hi to all:
I have build an application with Visual Basic .NET, to start SQL
Server replication. For each replication initiated (50 replication each 10
minutes), I create a new thread.
The application works great for 4 or 5 hours, but after that, the refresh of
the screen stops, and any other program I run (like internet explorer) won't
refresh.
Also, In my application I use a Timer control, and it won't run any tick
event.

I have make sure that all the threads I open to start replication are close
once replication finishes. In the Thread window in my debug, I can see that
the threads are closed.

I hope some one can give me a clue. My application needs to be running 24
hours, so I'm in a problem.

What should I check in the code?

Thanks in advanced to all.

It kinda sounds like you've run out of GDI handles -- make sure your
disposing all your handles. You can see if your leaking any with the Task
Manager -- add the Handle Count and GDI Objects to your Processes columns. I
know there are a finite amount of GDI objects available to the OS.
 
Thanks for the tip. Will run the app, and check the values you told me.
After a few hours, I will post the highest values here, to see if anyone can
help me.
 
After running my app, here are the results
It started with a GDI value of 38 and after 3 hours it reaches to 3226!!.

So I asume that is the problem. My application is a principal form (MDI
Parent) and for each replication started it opens a child form. By default,
each 10 minutes, 50 new child forms are opened and then closed.

I guess that the child forms are not cleaned in the right way. Can anyone
give me an advice of how to get the GDI value (from the Task Manager) with a
constant value?

Thanks in advanced.
 
Back
Top