Re: How to save all the exceptions of type "EAccessViolation
Posted: Tue Jul 31, 2018 5:04 pm
Have you run this inside or outside of the IDE debugger?
I've tried this in a simple test project:
It takes 3.8 seconds on my development PC. That's about 3.8 milliseconds per exception. Of course it'd be nice to have no delay at all. But I think 3.8 milliseconds per exceptions is so terribly bad?
I've tried this in a simple test project:
Code: Select all
procedure HiddenHandler(const exceptIntf: IMEException; var handled: boolean);
begin
handled := true;
end;
var i1 : integer;
time : dword;
begin
RegisterHiddenExceptionHandler(HiddenHandler, stDontSync);
time := GetTickCount;
for i1 := 0 to 999 do
try
raise Exception.Create('test');
except end;
time := GetTickCount - time;
MessageBoxA(0, PAnsiChar(AnsiString(IntToStr(time) + ' ms')), 'time', 0);
end.