[fpc-devel] Lazarus Apache module crashes during concurrent requests
Jonas Maebe
jonas.maebe at elis.ugent.be
Wed Sep 24 11:11:51 CEST 2008
On 24 Sep 2008, at 10:58, ABorka wrote:
> I'm not sure that something is changed to make it incompatible.
> The apache modules compiled on windows are only crashing if multiple
> requests are coming at the same time, and they are crushing at
> function/procedure returns (Yes, on Linux it is even worse, since no
> module gets even loaded by apache. That might be some C API
> translation problem).
Maybe you have to initialise the threading system so all the necessary
locks in the system unit get activated. Something like
{$ifdef unix}
uses
cthreads;
{$endif}
...
function dummythread(p: pointer): ptrint;
begin
end;
initialisation
WaitForThreadTerminate(BeginThread(@dummythread));
end.
Jonas
More information about the fpc-devel
mailing list