Thread overview | |||||
---|---|---|---|---|---|
|
March 21, 2003 Exception handling | ||||
---|---|---|---|---|
| ||||
First I'm not experienced in that theme, but I'm looking for a way to handle system crashes due to illegal pointers, division by zero or something like this. I want to avoid "blue screen" and handle the error by myself, i.e at least shut down my application. My application uses standard C code without any MFC stuff. I tried some exception handling with __except, __finally but I didn't get it work like I planned. If there is anyone, who can give me a few hints, how to realize it in DMC, I would be pleased. Greetings Heinz-Peter |
March 21, 2003 Re: Exception handling | ||||
---|---|---|---|---|
| ||||
Posted in reply to Heinz-Peter Nuettgens | For that reason (avoiding blue-screens and on-fly problem resolution, such as writing to primary video surface when its address is changed) I used Win32 API function, namely SetUnhandledExceptionFilter. Nic Tiger. "Heinz-Peter Nuettgens" <hnuettgens@t-online.de> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:b5g03u$16bg$1@digitaldaemon.com... > First I'm not experienced in that theme, but I'm looking for a way to handle > system crashes due to illegal pointers, division by zero or something like this. I want to avoid "blue screen" and handle the error by myself, i.e at least shut down my application. > > My application uses standard C code without any MFC stuff. > > I tried some exception handling with __except, __finally but I didn't get it > work like I planned. > > If there is anyone, who can give me a few hints, how to realize it in DMC, I > would be pleased. > > Greetings > > Heinz-Peter > > |
March 23, 2003 Re: Exception handling | ||||
---|---|---|---|---|
| ||||
Posted in reply to Nic Tiger | Thanks a lot, that helped. I think this function may help to solve my problem. Heinz-Peter "Nic Tiger" <nictiger@progtech.ru> schrieb im Newsbeitrag news:b5g6he$1ba9$1@digitaldaemon.com... > For that reason (avoiding blue-screens and on-fly problem resolution, such as writing to primary video surface when its address is changed) I used Win32 API function, namely SetUnhandledExceptionFilter. > > Nic Tiger. > |
Copyright © 1999-2021 by the D Language Foundation