From: "Charles Y. Kim" <ckim@telcontar.com>
To: <gcc@gcc.gnu.org>
Subject: Throw/Catch not working in SO?
Date: Mon, 14 Oct 2002 17:36:00 -0000 [thread overview]
Message-ID: <000e01c273d2$4e4ef900$7201000a@sanjose.telcontar.com> (raw)
Hi all,
I'm using some exception handling in a shared object, and while the
throw()/catch() works in both Windows and FreeBSD (using GCC 2.96), in Linux
(GCC 3.02 --enable-shared --enable-threads=posix) the throw is executed, and
the catch never happens.
For example... let's say I have the following code in the shared object...
void error() {
throw(1);
}
void error2() {
error();
}
void function() {
try {
if (blah)
error2();
}
catch(...) {
printf("exception caught");
}
}
I know that error2() is being called and the exception is being thrown...
but it's not being caught at all.
Does anyone have ANY ideas?
Thanks.
- Charles
next reply other threads:[~2002-10-14 22:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-14 17:36 Charles Y. Kim [this message]
2002-10-14 18:38 ` Janis Johnson
2002-10-14 18:39 ` Charles Y. Kim
2002-10-14 21:14 ` Fergus Henderson
2002-10-15 2:45 Rob
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000e01c273d2$4e4ef900$7201000a@sanjose.telcontar.com' \
--to=ckim@telcontar.com \
--cc=gcc@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).