473,503 Members | 2,152 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 1318
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.Timer? 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.EventLog) property to write information (start, stop, file) to
the Windows Event Log, I would also add
System.Diagnostics.PerformanceCounter 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****@deniznet.com> wrote in message
news:d2*************************@posting.google.co m... 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
7367
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...
2
2796
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...
1
1734
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...
5
7469
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...
0
7287
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,...
1
7008
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...
0
5594
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4688
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...
0
3177
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...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
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 ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
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...

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.