Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with exception handling on SunOS 10

Status
Not open for further replies.

eladouc

Programmer
Jun 25, 2009
1
DE
Hi

I'm getting a strange problem and I can get over it.

1 - I have a library (libcppbase.so) that implements a class DMUString.
2 - I have a library (libKVSlibrary.so) that implements HFSFileWrap with Open method that throw DMUString object as exception
3 - I have a third library (libCAAV5ModelIO_TDM.so) that calls HFSFileWrap.Open and try to catch the DMUString exception, but it always go in the general exception handler : catch(...)

I have this behavior only on SunOS. With the same code, on AIX or HP, it's working.

If I try to throw and catch HFSFileWrap instead of DMUString, it works...

libCAAV5ModelIO_TDM.so is a CAA library build for Catia...

In libcppbase.so

class DMUString
{
};

In libKVSlibrary.so

class HFSFileWrap
{
void Open()
{
throw DMUString("My exception");
}
};

In libCAAV5ModelIO_TDM.so

HFSFileWrap fw;

try
{
}
catch(DMUString& e)
{
//That's where I would expect the code to go
}
catch(...)
{
//That's where the code actually go
}

Does anybody have a clue on what could be the problem ?

Thanks

Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top