www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++ - Exception handling

↑ ↓ ← "Heinz-Peter Nuettgens" <hnuettgens t-online.de> writes:
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
Mar 21 2003
↑ ↓ "Nic Tiger" <nictiger progtech.ru> writes:
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

 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

 work like I planned.

 If there is anyone, who can give me a few hints, how to realize it in DMC,

 would be pleased.

 Greetings

 Heinz-Peter

Mar 21 2003
↑ ↓ → "Heinz-Peter Nuettgens" <hnuettgens t-online.de> writes:
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.

Mar 23 2003