You are not logged in.
Pages: 1
mormot.orm.base line 10566
[dcc32 Error] mormot.orm.base.pas(10566): E2010 Incompatible types: 'TOrmCacheEntryValueDynArray' and 'Pointer'
Last edited by dcoun (2023-02-08 20:48:42)
Offline
I am using the latest commit from Github. Problem started after commit 5e6f3685
One of the three cases that do not allow to be compiled is the following:
i := SortFind(pointer(Value), aID, Count);
Removing the pointer substitution it compiles OK:
i := SortFind(Value, aID, Count);
Why do we need the pointer?
Offline
Now I understand.
Older Delphi versions (e.g. XE7) did not have any problem with these lines (nor FPC).
Only recent Delphi revisions did complain.
Should be fixed now
with https://github.com/synopse/mORMot2/commit/2325a070
Offline
Delphi 11.2 after last commits:
[dcc32 Error] mormot.net.sock.windows.inc(1162): E2010 Incompatible types: 'Winapi.Windows.PCCERT_CONTEXT' and 'mormot.core.os.PCCERT_CONTEXT'
[dcc32 Error] mormot.net.sock.windows.inc(1335): E2010 Incompatible types: 'mormot.core.os.PCCERT_CONTEXT' and 'Winapi.Windows.PCCERT_CONTEXT'
Offline
It is weird: it did not trigger an error with XE## versions.
They did add some definitions in Windows.pas which where previously in other units... so it did not compile any more...
Please try
https://github.com/synopse/mORMot2/commit/98c67f69
Offline
fixed.
Thank you a lot @ab
Offline
Pages: 1