I can't think of a reason for this, except possibly a bug in GCC. A few more
things you can try:
- use catch(...) to catch all exceptions
- upgrade to GCC 4.x
- submit a bug report to GCC?
----- Original Message -----
From: "James Vanns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 01, 2007 4:59 AM
Subject: Gzip/Gunzip UnexpectedEndErr throw but NOT being caught!?
>
> So within this code:
>
> const string Message::decompress (const string &p_data) const {
> if (p_data.empty ())
> return p_data;
>
> string s;
>
> try {
> StringSource (p_data, true, new Gunzip (new StringSink (s)));
> } catch (const CryptoPP::Exception &e) {
> return "";
> }
>
> return s;
> }
>
> The Inflator::Put2() method (inherited through Gunzip) is throwing
> UnexpectedEndErr(). However the catch above isn't catching it!
>
> I've tried a myriad of things now:
>
> non-const version of CryptoPP:Exception
> Catching Inflator::Err
> Catching Inflator::UnexpectedEndErr
> Catching std::exception
>
> All to no avail. This is within a Linux NPTL (posix threads) app
> running with Crypto++ 5.4 and kernel 2.6.9 and gcc 3.4.5.
>
> Any ideas why? It's a bit of a show-stopper!
>
> Jim
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the "Crypto++ Users"
Google Group.
To unsubscribe, send an email to [EMAIL PROTECTED]
More information about Crypto++ and this group is available at
http://www.cryptopp.com.
-~----------~----~----~----~------~----~------~--~---