Bug Report T922619
Visible to All Users

An error occurs on compiling the dxDPIAwareUtils unit if the "Emit runtime type information" compiler option is enabled

created 5 years ago

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.

Comments (2)
C C
Christian V Giesen 5 years ago

    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.

    DevExpress Support Team 5 years ago

      Hello Christian,

      Thank you for the info. I will forward this thread to our developers to examine the issue you faced.

      Answers approved by DevExpress Support

      created 5 years ago

      We have addressed the issue described in this ticket and will include a fix in our next maintenance update. To apply this solution before official release, request a hotfix by clicking the appropriate version link.

      Note: Hotfixes may be unavailable for betas/updates set for release within a week.

        Show previous comments (1)
        DevExpress Support Team 5 years ago

          We've published a hotfix, and you can download and test it.

          C C
          Christian V Giesen 5 years ago

            Good day Mikhail,

            Thank you for the hotfix. I have tested it and all applications including the datasnap servers compile correctly without any errors.

            Thank you once again for an excellent support service from DX.

            Please consider this ticket as resolved.

            Regards,
            Christian Giesen.

            DevExpress Support Team 5 years ago

              You are always welcome!

              Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

              Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.