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.
-~----------~----~----~----~------~----~------~--~---

Reply via email to