Good day!
I have a multi-threads application with TaskManager, workers… And i have a problem.
threads execute-method looks like:
try
task.execute();
except
on E : Exception do
begin
log(e.message);
// callResetThread/disconnectUser
end;
end;
Each task have many Access Violations, runtime errors… Try-except for some cases does not
help. Is there any solution for protect my program from the errors at threads…
Delphi 7/ no jedi/ default memory-managers
UPDATE
Dear friends!
We have a code with many third-party components. This program raised 1-2 exception per week in single user mode. When we modify this program to work in server-mode with equal 500 clients we can have > 70 exceptions per day (1-2 may be critical and not catched try … except …end).
We realy understand that we must fix all bugs :-). But source code (with third-party components) has size > 20 Mb…
We realy need your help, HOW WE CAN CATCH THIS SYSTEM ERRORS (may be with using system methods).
You HAVE to fix them ALL, really! The AV is not only a problem of the exception an the handling of it. Every exception (AV) throws you programm into some more or less “undefined” state, because your code tried to write or read some data into/from memory and the data is not valid. So the result of your App or the thing it is supposed to do is not working! And there is no “it is not possible”! It is for sure possible or you have to rewrite the code…