Try using _exit(0); Although, to be perfectly honest you are going to be beating yourself up later over this. For one reason or another app is causing a hardware based exception to be thrown, setting things up so that BOINC will re-launch the application later just so it can run into the same problem again isn't the way to go.
Eventually the task instance will exceed the CPU/GPU runtime processing bound and error out, but you'll have quite a few upset volunteers on your hands. ----- Rom -----Original Message----- From: Raistmer [mailto:[email protected]] Sent: Friday, October 16, 2009 3:42 PM To: Rom Walton; [email protected] Subject: Re: [boinc_dev] Disabling BOINC's debugger Yes, it helped indeed, thanks! Now I see next situation: driver crash -> access to zero address exception -> app handler called -> exit(0) called inside app exception handler and then exception re-catched by BOINC again -> dump message in stderr and then windows (Vista) dilog box appears with proposal to debug application. Not quite understand why exit(0) rethrows (?) exception. ----- Original Message ----- From: "Rom Walton" <[email protected]> To: "Rom Walton" <[email protected]>; "Raistmer" <[email protected]>; <[email protected]> Sent: Friday, October 16, 2009 9:54 PM Subject: RE: [boinc_dev] Disabling BOINC's debugger It'll convert SEH exceptions into C++ exceptions. You'll be able to use the normal try/catch blocks to catch them. ----- Rom -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rom Walton Sent: Friday, October 16, 2009 1:53 PM To: Raistmer; [email protected] Subject: Re: [boinc_dev] Disabling BOINC's debugger Go to Project Properties/C/C++/Code Generation section and change the Enable C++ Exceptions option to /EHa. That'll treat SEH exceptions like C++ exceptions. ----- Rom -----Original Message----- From: Raistmer [mailto:[email protected]] Sent: Friday, October 16, 2009 1:49 PM To: Rom Walton; [email protected] Subject: Re: [boinc_dev] Disabling BOINC's debugger yes. ----- Original Message ----- From: "Rom Walton" <[email protected]> To: "Raistmer" <[email protected]>; <[email protected]> Sent: Friday, October 16, 2009 9:34 PM Subject: RE: [boinc_dev] Disabling BOINC's debugger Are you building your app with Visual Studio? ----- Rom -----Original Message----- From: Raistmer [mailto:[email protected]] Sent: Friday, October 16, 2009 1:32 PM To: Rom Walton; [email protected] Subject: Re: [boinc_dev] Disabling BOINC's debugger I use try{ function_call(); }catch(...) { handler(); } but still got BOINC's debugger called... ----- Original Message ----- From: "Rom Walton" <[email protected]> To: "Raistmer" <[email protected]>; <[email protected]> Sent: Friday, October 16, 2009 8:59 PM Subject: RE: [boinc_dev] Disabling BOINC's debugger The exception handling code on Windows only kicks in if no other exception handling mechanism is used. Just define an exception handler of some sort and you should be good to go. Just remember, on Windows there are two different exceptions that can be thrown. C++ exceptions and SEH exceptions. C++ exceptions use the try()/catch() stuff everybody is used too, SEH exceptions use __try/__catch. ----- Rom -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Raistmer Sent: Friday, October 16, 2009 12:50 PM To: [email protected] Subject: [boinc_dev] Disabling BOINC's debugger Hello Is it possible to give control for exception handling back to science app? What BOINC API call I should comment out to do this? Need exception handling inside app....to catch exception instead of writing to stderr and trashing task... _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address. _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address. _______________________________________________ boinc_dev mailing list [email protected] http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev To unsubscribe, visit the above URL and (near bottom of page) enter your email address.
