You are not logged in.
Hi,
we're testing mormot2 and we found error in:
httpServermain.pas
finally
server.Free; <== D12.2 throws error in same is with D11.3
end;
finally
settings.Free;
end;
D12:
destructor THttpProxyServer.Destroy;
begin
if fServer <> nil then
fServer.Shutdown; // set flag ASAP
inherited Destroy; <== exception
Exception :
destructor TSynAutoCreateFields.Destroy;
begin
AutoDestroyFields(self); <== Exception
inherited Destroy;
end;
exception is:
---------------------------
GExperts Debugger Exception Notification
---------------------------
Project httpServerFiles.exe raised exception class EAccessViolation with message 'Access violation at address 00C69C88. Read of address 0000008C'.
---------------------------
[&Filter ...] [Ignore &All this Session] [&Break] [Additional &Info] [&Continue]
---------------------------
ThreadId=33732
ProcessId=14
ThreadName="Main"
ExceptionMessage="Access violation at address 00C69C88. Read of address 0000008C"
ExceptionName="EAccessViolation"
ExceptionDisplayName="$C0000005"
ExceptionAddress=00C69C88
FileName="C:\DEV\synopse\GitHub\mORMot2\src\core\mormot.core.json.pas"
LineNumber=11881
---------------------------
thank you
Offline
1. open example: httpServerFiles.dpr in mORMot2\ex\http-server-files
2. enter in Run paramateres: /folder "myfolder..."
3. run
4. hit enter
5. ... exception in server.Free;
Offline
Now I get it.
Please try by adding a missing call to the inherited constructor:
{ THttpProxyServer }
constructor THttpProxyServer.Create(aSettings: THttpProxyServerSettings);
begin
inherited Create; // call TSynAutoCreateFields
fLog := TSynLog;
...
Could you create a Pull Request with this fix?
I am not with my dev computer, because I am on holidays.
Offline
Could you create a Pull Request with this fix?
I am not with my dev computer, because I am on holidays.
Done
Offline