473,659 Members | 3,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Form becomes unresponsive after 2 hours.

Hi,

I'm having problem with this internet application. It's a simple form
with a button and couple text boxes where I can enter parameters like
timeout etc.

Once I push the button, it starts reading the content of a specific
URL and updating the database every minute or so. When I leave the
application for overnight I find it "frozen". It seems it's still
doing its job, but I cannot restore the form on the screen. The only
way to stop is to "end task" from task manager.

I use httprequest and httpresponse objects. Problem doesn't appear in
debug mode, but in the exe file. I believe it takes 1-2 hour to be
unresponsive like that. I use doEvents in a Timer object every second.
Clinet machine has latest Framework installed. Different clients give
the same result. As for the database, I connect to a MS SQL database
somewhere on the Intranet.

Any suggestion on that?

Thanks in advance...
Nov 20 '05 #1
2 1326
DenoxiS,
Have you considered creating a Windows Service instead of a Windows Forms
application?
I use doEvents in a Timer object every second. Is this a Windows.Forms.T imer? You may need to call DoEvents, to have the
Timer click event handled, in other words if the Timer's click event is not
handled, then your DoEvents is not called, which means that the Timer.Click
event cannot be handled.

I would look at creating a Windows Service instead, and use the EventLog
(ServiceBase.Ev entLog) property to write information (start, stop, file) to
the Windows Event Log, I would also add
System.Diagnost ics.Performance Counter classes to keep track of work being
done.

I would then either use the built-in Windows utilities to check the event
log & performance counters or write a simply Windows Forms app that collects
& displays the info. This windows forms app would not need to be left
running...

Hope this helps
Jay

"DenoxiS" <go****@denizne t.com> wrote in message
news:d2******** *************** **@posting.goog le.com... Hi,

I'm having problem with this internet application. It's a simple form
with a button and couple text boxes where I can enter parameters like
timeout etc.

Once I push the button, it starts reading the content of a specific
URL and updating the database every minute or so. When I leave the
application for overnight I find it "frozen". It seems it's still
doing its job, but I cannot restore the form on the screen. The only
way to stop is to "end task" from task manager.

I use httprequest and httpresponse objects. Problem doesn't appear in
debug mode, but in the exe file. I believe it takes 1-2 hour to be
unresponsive like that. I use doEvents in a Timer object every second.
Clinet machine has latest Framework installed. Different clients give
the same result. As for the database, I connect to a MS SQL database
somewhere on the Intranet.

Any suggestion on that?

Thanks in advance...

Nov 20 '05 #2
Hi DenoxiS,

Are you sure you are not creating endless objects in a single method?

Just a thought

Cor
Nov 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7395
by: Brian Keating EI9FXB | last post by:
Hello again, I've already placed a few posts on this topic. This time i've a simple application that exhibits my problem, I've placed sample solution 8k on my website should anyone be interested in having a look. http://briankeating.net/transfer/test.zip To recap the problem I expected (and found). I've a main GUI thead (main form), this GUI thread has an UpdateTextBox function that appends a string in a textbox and It also has a button...
2
2809
by: jj | last post by:
I have a single threaded application in c# that scans through a file system. While doing this if I try to minimize, maximize buttons on the top,right hand corner of my form do not do as they are supposed to do. To maximize the window I have to go to "task manager" and double click the application. How do I control those maximize, minimize buttons on the top right section of my form? A learner here
1
1750
by: =?Utf-8?B?SmVzcyBMdW5kYWdlciBBbmRlcnNlbg==?= | last post by:
Hi, I have a problem accessing a web service. The problem consists in that after a couple of hours (approx. 3 hours) the web service is non-responsive. I have then tried accessing it through Internet Explorer and when I invoke a method exposed by the web service I recieve a "FileNotFound"-exception referring to a specific DLL in c:\windows\temp (the filename of the DLL is always different every time I recieve the
5
7477
by: PulkitZery | last post by:
Hello Everyone, I need some help here, I have a form on which I have all the user interface components, and I need to do a big calculation every 5 seconds. I used the Timer object to do this calculation every 5 seconds. So far so good, but my calculation takes about 2-3 seconds and because of that it made my form very unresponsive for that period of time, which is never acceptable. I googled the problem and found that If I use...
0
8428
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8337
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
8851
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
8748
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...
1
8531
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
5650
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4175
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...
2
1978
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1739
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.