Good day,
I recently upgraded to DevExpress VCL version 20.1.4. I can no longer compile my DataSnap servers due to the following errors in the
dxDPIAwareUtils.pas unit. See attached screenshot of compiler errors generated by the IDE.
This only happens when compiling the debug version of the DataSnap server. This version has a main form which is invoked and shown at runtime. I have disabled themes but the errors persist.
When compiling the Service and/or ISAPI DLL it compiles without errors.
This leads me to believe that something has changed in screen DPI rendering in version 20.1.4 as this did NOT happen in any previous version of DX VCL.
{ TdxCursorManager }
TdxCursorManager = class
strict private type
{$REGION 'Internal Types'}
TCursorInfo = class
Index: Integer; <-- Error here
ResInstance: THandle; <-- Error here
ResInt: Integer; <-- Error here
ResName: PChar; <-- Error here
end;
{$ENDREGION}
strict private
class var FList: TList;
protected
class procedure Finalize;
class procedure DoRegister(const AInfo: TCursorInfo);
public
class procedure Refresh;
class procedure Register(ACursorIndex: Integer; AResInstance: THandle; const AResName: PChar);
class procedure Unregister(ACursorIndex: Integer);
end;
Kindly advise as to how to rectify the issue.
Regards,
Christian Giesen.
Good day,
Just to let you know, I have temporarily switched the 'Emit runtime type information' off in the project's compiler options and the servers compile without errors.
I do not understand this as I have NEVER changed this setting before and have always compiled without any errors.
regards,
Christian Giesen.
Hello Christian,
Thank you for the info. I will forward this thread to our developers to examine the issue you faced.