Thanks for the quick reply. There are no explicit threads in the
application.
I should have included that the app was written as a form app but we
recently modified it to not display the form removing the Application.Run
call in the DPR and executing a method instead:

  Application.CreateForm(TForm1, Form1);
  Form1.RunApplication; //Application.Run;

The Form1.RunApplication method was factored from the Form1.FormShow method
(without the UI specific code).

Thinking about it, this is likely the cause. What does Application.Run do,
specifically cleaning up, that could be missing? (Maybe this is a question
for another forum).


On Sat, May 11, 2013 at 7:55 AM, Arno Garrels <arno.garr...@gmx.de> wrote:

> John Reid wrote:
> > The Finalization
> > section calls DeleteCriticalSection(SslCritSect).
> > TComponent.DestroyComponent calls the destructor of all its
> > components. Those destructors ultimately call UnloadSsl and this
> > method uses EnterCriticalSection(SslCritSect) and
> > LeaveCriticalSection(SslCritSect), which causes an access violation
> > and prevents the app from closing.
>
> Do you use multiple threads with ICS?
> If so, make sure all threads are closed before the application
> exits.
>
> --
> Arno
> --
> To unsubscribe or change your settings for TWSocket mailing list
> please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
> Visit our website at http://www.overbyte.be
>



-- 

*John Reid*

*Software Development Manager*
6415 South 3000 East
Suite 150
Salt Lake City, UT  84121
Phone: 801.305.3995
Fax: 801.521.6222

*www.piracle.com*
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to