I have a problem with my isapi application
When i m in single processor (no hyper threading),
everything work good, When I m in multi processor
(hyper threading) i have randomly some access violation !
this is my code :
function HttpExtensionProc(var ECB: TEXTENSION_CONTROL_BLOCK): DWORD;
var HTTPRequest: TISAPIRequest;
HTTPResponse: TISAPIResponse;
begin
Result := HSE_STATUS_SUCCESS;
try
HTTPRequest := TISAPIRequest.Create(@ECB);
try
HttpRequest.MaxContentSize := 10000000; {max size = 10 Mo}
HTTPResponse := TISAPIResponse.Create(HTTPRequest);
try
MainHandleHttpRequest(HTTPRequest, HTTPResponse);
if not HTTPResponse.Sent then HTTPResponse.SendResponse;
finally
HTTPResponse.Free;
end;
finally
HTTPRequest.Free;
end;
except
Result := HSE_STATUS_ERROR;
end;
end;
Thanks you by advance for your help!
stephane
Loki,
I would guess the multi cpu is revealing a problem with
"thread-safe"ness. Might want to reevaluate your code for thread safe
issues.
"Mark Tiede" <mti...@mjwcorp.com> wrote in message
news:4885d221$1...@newsgroups.borland.com...