Thread suddenly stops in NT Service

Discussion in 'Python' started by Matt Rapoport, Jul 15, 2003.

  1. I'm running an NT service with a thread. The thread performs a
    calculation every so often and appends the number to a text file.
    Every so often the thread just stops - or so it seems. The text file
    stops getting numbers added to it but the service is still running and
    no errors have been thrown. I'm quite sure that the code would catch
    an error and post it to the event viewer if one were arising.

    The only other relevant points I can think of are that the thread runs
    a while 1: loop and is set to run as a Daemon. The service waits only
    for the stop command. It doesn't seem to be operating system specific
    (happens on both XP and 2000). It doesn't seem to be file size
    specific, it stops at various file sizes ranging from 5K - 50K. It
    doesn't seem to be time specific - sometimes it'll stop after about a
    day. Sometimes it'll stop after two days.

    Any help would be great. Thx.

    Matt
     
    Matt Rapoport, Jul 15, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Todd

    Timer thread stops running

    Todd, Apr 6, 2004, in forum: ASP .Net
    Replies:
    4
    Views:
    4,190
  2. Phil
    Replies:
    3
    Views:
    4,441
  3. =?iso-8859-1?q?Nils Hedstr=f6m

    State-server suddenly stops responding

    =?iso-8859-1?q?Nils Hedstr=f6m, Jan 27, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    2,741
    [MSFT]
    Jan 28, 2005
  4. IT Drone
    Replies:
    2
    Views:
    447
    IT Drone
    Mar 23, 2005
  5. =?Utf-8?B?bWFyZWFs?=

    Thread just stops running

    =?Utf-8?B?bWFyZWFs?=, Mar 8, 2005, in forum: ASP .Net
    Replies:
    9
    Views:
    743
    Kevin Spencer
    Mar 9, 2005
  6. vardium
    Replies:
    0
    Views:
    760
    vardium
    Feb 8, 2006
  7. Steve

    Thread stops!!

    Steve, Feb 2, 2004, in forum: Python
    Replies:
    0
    Views:
    424
    Steve
    Feb 2, 2004
  8. Harald Armin Massa
    Replies:
    9
    Views:
    470
    Jeff Shannon
    Sep 29, 2004
Loading...