public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Henrik Nilsson \(Developer\)" <hni@bossmedia.se>
To: <gcc-help@gcc.gnu.org>
Subject: RE: Exceptions and so
Date: Wed, 15 May 2002 07:50:00 -0000	[thread overview]
Message-ID: <KEEPIDENLNDAMPIBECHFEEHBCDAA.hni@bossmedia.se> (raw)
In-Reply-To: <KEEPIDENLNDAMPIBECHFGEGPCDAA.hni@bossmedia.se>

Hi 

Well it's really simple code inside the shared object.
Not even this is working
prinf("Throw")
try{
	throw 1;
}
catch(int i){
	prinf("Catch")
}
I got the same result when compiling with gcc or g++
Bjorn
Can you specify comp.lang.c++.moderated
Thanks!
/Henrik




>Hi Henrik,

> You should be able to throw exceptions in a shared object
>and even accross the so interface, but you have to be very
>carefull. I have had interesting results stemming from
>premature unloading of libraries due to thrown exceptions.
>A simple design flaw on my behalf due to insufficient
>understanding, but quite educational i guess;)
> You might want to check out comp.lang.c++.moderated, since
there is an interesting thread running now about the binary
compatibility of shared objects.
 Perhaps you could try to post a small contained example
demonstrating the problem?

Yours sincerely,

bjorn




  parent reply	other threads:[~2002-05-15 14:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-15  5:07 Henrik Nilsson (Developer)
2002-05-15  5:46 ` bjorn rohde jensen
2002-05-15  7:50 ` Henrik Nilsson (Developer) [this message]
2002-05-15  8:27   ` bjorn rohde jensen

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=KEEPIDENLNDAMPIBECHFEEHBCDAA.hni@bossmedia.se \
    --to=hni@bossmedia.se \
    --cc=gcc-help@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).