Subject: C++ problems with exception handling
From: [email-masked] (Tony FITZPATRICK)

10 Dec 1996 18:16:52 -0800
Sender: [email-masked]
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
X-Sender: [email-masked] (Unverified)
X-Mailer: Windows Eudora Light Version 1.5.2
Original-To: [email-masked]
Original-Sender: [email-masked]

Hello everybody

                Has anyone out there any idea what causes the following
error from the "cplus.exe" program in the demo files (the "demo" directory
is part of the b14 release for those who are looking for it, IMHO it's worth
getting). "cplus.exe" succesfully demonstrated exception handling in in b14
but hasn't worked since and still doesn't work with b17. Using the
libstdc++.a from b14 didn't solve this problem in b16 and doesn't in b17.
I'm running W95 on a Pentium.

(cplus.exe 1099) In cygwin_except_handler
(cplus.exe 1099) Exception trapped!
(cplus.exe 1099) exception C0000005 at 40F1FA
(cplus.exe 1099) exception: ax 0 bx 488000 cx 5 dx 45F3004
(cplus.exe 1099) exception: si 487130 di 100113BF bp 25BF5A4 sp 25BF598
(cplus.exe 1099) exception is: STATUS_ACCESS_VIOLATION
(cplus.exe 1099) Stack trace:
(cplus.exe 1099) frame 0: sp = 0x25BF3B0, pc = 0x1001282A
(cplus.exe 1099) frame 1: sp = 0x25BF3CC, pc = 0xBFF7663C
(cplus.exe 1099) frame 2: sp = 0x25BF3F0, pc = 0xBFF859D9
(cplus.exe 1099) frame 3: sp = 0x25BF488, pc = 0xFFECBAD7
(cplus.exe 1099) frame 4: sp = 0x25BF5A4, pc = 0x40ED09
(cplus.exe 1099) frame 5: sp = 0x25BF5B0, pc = 0x40F2F6
(cplus.exe 1099) frame 6: sp = 0x25BF5BC, pc = 0x40F32B
(cplus.exe 1099) frame 7: sp = 0x25BF5C4, pc = 0x4010D4
(cplus.exe 1099) frame 8: sp = 0x25BF5D8, pc = 0x10011BEB
(cplus.exe 1099) frame 9: sp = 0x25BFE14, pc = 0x10011BFF
(cplus.exe 1099) frame 10: sp = 0x25BFE20, pc = 0x410854
(cplus.exe 1099) frame 11: sp = 0x25BFE30, pc = 0x401012
(cplus.exe 1099) frame 12: sp = 0x25BFE38, pc = 0xBFF88F75
(cplus.exe 1099) frame 13: sp = 0x25BFF78, pc = 0xBFF88E23
(cplus.exe 1099) frame 14: sp = 0x25BFFF4, pc = 0xBFF8783F
(cplus.exe 1099) frame 15: sp = 0x81585FF0, pc = 0x5
(cplus.exe 1099) End of stack trace (more stack frames may be present)

I don't know what the 1099 represents in the above output but it goes up by
1 for each command entered in bash between attempts to execute cplus.exe ?

In passing we still have "Complex.h" and "complex.h" in /include/g++

Other than that, thanks to cygnus for b17, getting better all the time.

-
For help on using this list, send a message to
"[email-masked]" with one line of text: "help".