473,626 Members | 3,031 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1464


"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
3008
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 Advanced server. IIS5.0 Database: Oracle (Using ADODB to connect to the Database) App server running on the same machine (COM+)
10
7291
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 web/app servers) with connection pooling and ~1 trx/sec. The database growth is neglegeable and actually is not even relevent which I will explain in a minute. 99% of the trxs are from one SP that does a select. The resultsets are relatively...
6
4549
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 slow. I copied the SQL statement from the query and tried executing it from code which then ran in 1 second. To make sure that I didn't miss anything, I copied the SQL statement back into a query and tried running it again. It now also only took 1...
10
1925
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 here. Conversion seems OK and I start the app. BUT . . . Mainform doesn't work. Form comes up but none of the buttons react. Why not? I go to design view and see that code is not compiled. (compile-option is active) So I compile and go to normal...
1
1945
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 not using any data sources Mysql, access etc. Instead I use binary formatter to store and read data. at the beginning the program checks username/password. it does it in the following way: if(form2.initialized) { for(int i=0;...
17
5192
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 running continuously and refreshing once an hour. I there set timeout= 61 in <sessionState section and on my page it says <meta http-equiv="refresh" content="3600">. I also set timeout=120 in the <forms section of web.config to make sure
3
331
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 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.
11
2583
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 temperatures. T = 20 degrees at all times.... The 2D T-array looks like this:
6
2356
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 problem also with other imports (e.g. urllib2 etc.). And again very often in all these cases where I get weired Python exceptions, the problem is around re-functions - usually during re.compile calls during import (see some of the exceptions below). But...
0
8196
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8637
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2623
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1507
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.