I have a test app that demonstrates the problem for anyone who wants to try to
tackle this sticky problem.
Thanks,
--
Mark Lauter
Senior Software Engineer
--------------------------
Emaigisoft
http://www.quicksuite.com/
--------------------------
The apologists are the ones who
defend the computer because it can
accomplish a task that was heretofor
impossibly difficult. They point to the
bear and exclaim, "Look, it's dancing!"
ExitProc? YOu should use DLLProc, not ExitProc.
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
code looks like this......
The timer thread executes the OnTerminate event but never gets past the
WaitFor(). I've tried setting the threads FreeOnTerminate property to true,
I've tried not freeing the thread, I've tried not terminating the thread, I've
tried terminating but not WaitingFor. No matter what I do I get an access
violation a second or two after the call to FreeLibrary, that is IF I don't
WaitFor(), otherwise I get blocked at the WaitFor.
Thanks in advance for anymore help.
procedure CleanUp;
var
i : integer;
c : integer;
timer : TTimerThread;
begin
c := TimerList.Count - 1;
for i := 0 to c do
begin
timer := TimerList.Items[i];
timer.Terminate();
timer.WaitFor();
timer.Free();
end;
TimerList.Free();
TimerList := nil;
end;
procedure DllEntryProc(Reason : integer);
begin
case Reason of
DLL_PROCESS_DETACH :
begin
ALog.Add('PROCESS_DETACH', []);
CleanUp();
end;
DLL_PROCESS_ATTACH : ALog.Add('PROCESS_ATTACH', []);
DLL_THREAD_ATTACH : ALog.Add('THREAD_ATTACH', []);
DLL_THREAD_DETACH : ALog.Add('THREAD_DETACH', []);
end;
end;
--
Mark Lauter
Senior Software Engineer
--------------------------
Emaigisoft
http://www.quicksuite.com/
--------------------------
The apologists are the ones who
defend the computer because it can
accomplish a task that was heretofor
impossibly difficult. They point to the
bear and exclaim, "Look, it's dancing!"
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.00004fa...@antispam.compuserve.com...
--
Jeff Overcash (TeamB)
(Please do not email me directly unless asked. Thank You)
Have you ever met a lady screaming angst potential?
Have you ever dreamed of romance no matter how experimental?
Have you ever felt an alien drifting back into your hometown?
Did you think you were buying safety when you bought that piece of ground?
(Fish)
Thanks,
--
Mark Lauter
Senior Software Engineer
--------------------------
Emaigisoft
http://www.quicksuite.com/
--------------------------
The apologists are the ones who
defend the computer because it can
accomplish a task that was heretofor
impossibly difficult. They point to the
bear and exclaim, "Look, it's dancing!"
"Jeff Overcash (TeamB)" <over...@onramp.net> wrote in message
news:390F766F...@onramp.net...