CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Partial crash

  1. #1
    Join Date
    Feb 2007
    Posts
    54

    Partial crash

    Hi everyone,

    I'm working on a fairly complex legacy application, which uses several threads to do its job.

    When it crashes (for instance when it tries to access a deleted object, or stuff like that), it seems only the thread where the error occured stops. All the other threads go on as if nothing had happened.

    This is a problem. I want it to crash completely (the application is watched remotely, if it crashes partially the crash might go undetected). Is this normal behavior? How can I change it?

  2. #2
    Join Date
    Jul 2002
    Posts
    2,543

    Re: Partial crash

    If there is unhandled exception in any thread, the whole application stops. Maybe there is exception handling in some application threads, which prevents program to crash. Look for catch operators or global exception handling in the code.

  3. #3
    Join Date
    Feb 2007
    Posts
    54

    Re: Partial crash

    Thanks, but that doesn't seem to be it. There are a few, very localized try/catch statements, but they are unrelated to the crashes. Besides, if the error is caught, there should not be a crash at all, right? Right now, when there is a crash, I get the Windows error window with the memory address and all. But the rest of the application still runs in the background.

    Are there maybe specific compilation flags or thread creation options that explain this behavior?

Tags for this Thread

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

Featured