try/catch with new rtti & /GX doesn't want to catch exception...

try/catch with new rtti & /GX doesn't want to catch exception...

Post by caront » Sat, 18 Jun 2005 04:17:43


Hi all,


I'm having a really strange problem using try/catch blocks on eVC++ 4
SP4. I've patched rtti like microsoft says including on linking his new

Ccrtrtti.lib and including /GX option for compiler.


if i do something like this:


CMyStruct *pippo = NULL;
try {
pippo->intVar = 100;


}


catch(...) {
TRACE(_T("What are you doing!!!"));


}


the de *** doesn't catch the exception and stops.
Then if i do...

CMyStruct *pippo = NULL;
try {
pippo->intVar = 100;


}


catch(int i) {
TRACE(_T("What are you doing!!!"));


}


the de *** doesn't catch the exception. In it's bugged mind thinks
that all goes well and doesn't stop.

I've tryed to use TRY/CATCH instead of try/catch but it's the same.
I don't know where the bug is and how can i sole it.


Someone can help please?


Bye


--
Caronte