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