C# windows application closed by widows

Discussion in 'C#' started by ialien, Aug 12, 2007.

  1. ialien

    ialien New Member

    Joined:
    Aug 12, 2007
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    my application listens for socket connections. client can open socket connections and transmit messages. it connects to another server to get updates. each second my application get 300-400 data updates filters them and tranmits the updates to the connected clients same filterred 10 to 12 updates to each clients.
    When 500 clients connected to my application its cpu use was 40-80% memory use 15 MB but after 3 hours I get windows error. some window apprears saying "This application encountered some problem needs to shut down. Sorry for the enconvience." Amazingly my app is running happyly no change in cpu and mem uses. When i close the error window it shuts my app.

    This is a multithreaded application. I checked for deadlocks confident that there is none and .net 2 handles deadlock itself. Confident that there is no memory leaks. Application totally written in C#.
    Can anybody help how to ger rid of this windows error?
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Now thats a very wierd test case of crash running after quite long time.

    I would suggest you check for error where (I mean function name in the error if its a .NET Error) the error is occuring and get some idea.
     
  3. rhaazy

    rhaazy New Member

    Joined:
    Jul 6, 2007
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    0
    I would almost guarantee that someplace the application is pooling up memory, and the application is being closed due to it reaching its application memory limit.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice