Results 1 to 5 of 5

Thread: Problem with .net app just closing

  1. #1

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Unhappy Problem with .net app just closing

    I recently wrote a vb.net app that packs,blazes, and backups summation cases automatically.

    It works great if you run it in the daytime. If you run it at night, it just dies. I checked with the clients network team, and the don't know what's causing this.

    I know their server is rebooted at 3:00am at night, but my program seems to die at 1:00am. I decided to place all the code inside a big try catch around all the code, but no errors were logged. I've also checked the windows event logs and found nothing.

    Is there a way to tell who or what is killing my program? Let me know if I should provide more info? Do I need to write a nanny program to monitor it?
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

  2. #2
    PowerPoster
    Join Date
    Aug 2005
    Location
    College Station, TX
    Posts
    4,521

    Re: Problem with .net app just closing

    Is this an app or a service? You may want to see if you can convert it into a service so that it is running all the time. If it is an app, are you using threading perhaps? In my experiences this usually happens when trying to use threads, and when not coded properly, the threads could exit unexpectedly and cause the program to shut down for some reason.

  3. #3
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: Problem with .net app just closing

    1- Just throw a couple of break-points in suspected places and trace the values.
    2- Look for Try Catch with Application.Exit inside the catch block.
    3- Remove Try catch blocks that contain large fragments of the code
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  4. #4
    Fanatic Member Crash893's Avatar
    Join Date
    Dec 2005
    Posts
    930

    Re: Problem with .net app just closing

    It might sound stupid but one time i had this happen to me

    and i had an exit sub in an if statment get changed to just exit

  5. #5

    Thread Starter
    Addicted Member silentthread's Avatar
    Join Date
    Jun 2006
    Location
    Miami, Florida
    Posts
    143

    Re: Problem with .net app just closing

    Part of my problem has been fixed by...

    replacing.....
    VB Code:
    1. Shell("SumAgent.exe " & firstCIpathinList)

    with.....
    VB Code:
    1. System.Diagnostics.Process.Start("SumAgent.exe", firstCIpathinList)

    Not sure why, but when using the shell function I would get a message as follows....


    DDE Server Window: sw32.exe - Application Error

    The instruction at "0x00000000" referenced at memory at "0x00000000". The memory could not be "read." Click on OK to terminate the program



    This takes care of one of my burdens.
    Watch media as you download it! Excellent tool!
    FREE CUBA!
    MyBlog
    If you feel my post has helped, please rate it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width