Hidden exception filter not working under BCB6

delphi package - automated exception handling
Post Reply
ne0
Posts: 14
Joined: Mon Feb 06, 2006 9:00 am

Hidden exception filter not working under BCB6

Post by ne0 »

I've simple application with __try/catch statement like this:

Code: Select all

void __fastcall TForm1::MyHandledException(const _di_IMEException exceptIntf,
	bool &handled)
{
	MessageBox(0, "test", "test", 0);
	handled=false;
}

void __fastcall TForm1::Button1Click(TObject *Sender)
{
	RegisterHiddenExceptionHandler(&MyHandledException, stDontSync);
	__try
	{
		throw Exception("Error");
	}
	catch(...){};
}
But MyHandledException does not work (not called). I've tried class method and regular function as error handler, as well as different exceptions (throw ... / a=rand()/StrToInt("abc")) with the same result... :(
Please help me. What i do wrong?

PS. Using madExcept 3.0b under BCB6.
madshi
Site Admin
Posts: 10764
Joined: Sun Mar 21, 2004 5:25 pm

Post by madshi »

Hello,

I'm sorry to say, but the hidden exception handler stuff currently only works for Delphi try..except blocks. It doesn't work for BCB try..catch blocks yet... :?
ne0
Posts: 14
Joined: Mon Feb 06, 2006 9:00 am

Post by ne0 »

:cry: bad.
Anyway, i hope you will fix this in future... :wink:
Post Reply