Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / December 2003



Tip: Looking for answers? Try searching our database.

crash in catch

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
fokke - 03 Dec 2003 11:46 GMT
i'm getting an access fault when leaving a catch:

try
{
   throw runtime_error("some error ocurred");

}
catch (runtime_error err)
{   // handle error
}
// crash!

this is what my stack looks like:

__end__catch
std::runtime_error::~runtime_error()
std::_MSLstring::~_MSLstring()
std::tr1::shared_ptr<char>::~shared_ptr()
std::tr1::detail::shared_ptr_deleter_common::release()
???

this is in cw 9.1
it didn;t happen in 8

this looks like a bug in cw to me.
Howard Hinnant - 03 Dec 2003 15:15 GMT
> i'm getting an access fault when leaving a catch:
>
[quoted text clipped - 21 lines]
>
> this looks like a bug in cw to me.

I'm having trouble replicating these symptoms:

#include <stdexcept>
#include <iostream>

int main()
{
   try
   {
       throw std::runtime_error("some error ocurred");
   }
   catch (std::runtime_error err)
   {
       std::cout << "Handling error\n";
   }
   std::cout << "Done\n";
}

Could you create a complete demo, and either post it here, mail it
directly to me, or submit it to support@metrowerks.com ?

Thanks,
-Howard
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.