473,382 Members | 1,386 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

Strange problem after 5/6 hours of execution

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
3 1444


"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Sam | last post by:
Guys facing a strange problem any clue would really rescue me.. i am using a ASP application with following things Server : Intel Xeon (TM) CPU 2GHz, 2GB RAM, 136GB HDD OS : Windows 2000...
10
by: JL | last post by:
To All, I have a SQL2KSP3a database(<1GB) running on a 4x3GB physical CPU with 4GB of ram. It is Windows Server 2003 with hyper-threading turn on. There are ~420 .Net users/cxns (fat client, no...
6
by: Ryan | last post by:
I came across a situation that I've been unable to explain and was hoping somebody had an answer: I had written an update query which was taking about 8 seconds to run and considered it too...
10
by: Arno R | last post by:
Hi all Yesterday I found a strange corruption-issue that I can't solve yet or actually point my finger at. I converted an A97 app to A2k. I have done this often enough so I didn't expect trouble...
1
by: Default | last post by:
Hi, I am new to C#, that is why I am not sure what kind of problem it is: Is VS files corrupted , or something else. that is the problems description: I am working on a small database project. I am...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
3
by: Rodrigo | last post by:
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...
11
by: Martin Joergensen | last post by:
Hi, I've encountered a really, *really*, REALLY strange error :-) I have a for-loop and after 8 runs I get strange results...... I mean: A really strange result.... I'm calculating...
6
by: robert | last post by:
I get python crashes and (in better cases) strange Python exceptions when (in most cases) importing and using cookielib lazy on demand in a thread. It is mainly with cookielib, but remember the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.