Re: [twsocket] EnterCriticalSection(SslCritSect) called afterFinalization calls DeleteCriticalSection(SslCritSect)

2013-05-11 Thread Arno Garrels
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

Re: [twsocket] EnterCriticalSection(SslCritSect) called afterFinalization calls DeleteCriticalSection(SslCritSect)

2013-05-11 Thread John Reid
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:

Re: [twsocket] EnterCriticalSection(SslCritSect) called afterFinalization calls DeleteCriticalSection(SslCritSect)

2013-05-11 Thread Arno Garrels
John Reid wrote: 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;