By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,144 Members | 849 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,144 IT Pros & Developers. It's quick & easy.

Strange problem after 5/6 hours of execution

P: n/a
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 Acosta
Jul 21 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a


"Rodrigo" wrote:
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 Acosta


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.
Jul 21 '05 #2

P: n/a
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.
"Oculus" wrote:


"Rodrigo" wrote:
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 Acosta


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.

Jul 21 '05 #3

P: n/a
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.

"Oculus" wrote:


"Rodrigo" wrote:
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 Acosta


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.

Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.