exceptproc being called windows
i am now perplexing emanate an difference handler built windows use that, an unhandled exception, sends summary another program. i have built slight gotten communication working, nonetheless seems each way throws error, (i have lift formula force it.) windows catches instead handler isn't called. anyone explain i am doing wrong?.
simplified formula explain:
procedure unhandled();
begin
lift exception.create('unhandled');
end;
procedure exceptionhandler(exceptobject: tobject; exceptaddr: pointer);
begin
writeln('display: ' + exception(exceptobject).message);
//send summary here
end;
i formula run it:
writeln('starting');
exceptproc := @exceptionhandler;
unhandled();
i design cost be:
starting
display: unhandled
but does display:
starting
then windows advantage management prompt after 5 seconds.
why isn't handler being morally called?
p.s. i've controlling tests console app testing.
edit:
here's some-more information:
apparently have an indifferent exceptproc, your way shouldn't pitch normal runtime 217 error. i'm guessing windows catching, i however, way throwing runtime error, i can't an errorproc locate either.
Comments
Post a Comment