Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Re: long-running background threads

Thread Tools

Re: long-running background threads

David Browne
Posts: n/a

"Erik Sargent" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a very simple web app for displaying the status of a group of

doctors (available/not available) which,

.. . .
> When I debug, it works fine. When I make a request once per minute, it

works fine. Each change is logged and I >can pull up Windows explorer and
watch the log file's timestamp increment each minute. The problem is if
nothing >happens for several minutes - then it just seems to stop.

Have faith. Threads don't just stop. And what you're doing should work

Make sure that your Thread Proc has a catch block, and records any exception
in your log file.

void PollingThreadProc()
while (true)
//do something

catch (Exception ex)
Trace.WriteLine("Polling thread terminating with exception");



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DIV background-repeat background-image? For shadow effect jc ASP .Net 3 03-19-2008 04:19 PM
DIV background-repeat background-image for shadowing effect jc HTML 1 03-19-2008 02:16 PM
not able to click on background tab and backgrounds in properties to change the background. rex Computer Support 2 12-06-2006 02:26 AM
Background transparent when 'background' is used JWL HTML 4 09-26-2006 05:37 PM
Background Check - Background search - People search mason66 ASP .Net 0 07-27-2006 10:20 AM