Bug Report T326793
Visible to All Users

Skin Editor - "Invalid operation in GDI+ (Code: 2)" error occurs on saving a project that contains a number of skins

created 9 years ago

Hi!

dxSkinEditor.exe when saving a file, type "Binary Express Skins (*.skinres)" raises the error "Invalid operation in GDI+ (Code: 2)"
Select the entire list of skins.
What to do?

Sincerely, Dmitry.

Comments (2)
DA DA
Dmitry Alekseev 9 years ago

    If from the list of skins to clean skins Office2016Colorful and Office2016Dark, the error disappears.
    If at least one of them to select, then immediately the error message "Invalid operation in GDI+ (Code: 2)"
    Apparently, something is wrong in these 2 new skins.

    DevExpress Support Team 9 years ago

      Hello Dmitry,

      Thank you for informing us about this. We will examine the issue and get back to you once we have any results or need additional information.

      Answers approved by DevExpress Support

      created 9 years ago

      We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

      Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

        Comments (3)
        DA DA
        Dmitry Alekseev 9 years ago

          Thanks!

            Hi,
            I have updated DevExpress to 2015.2.4 and if the user changes in runtime style to any of Office2016 themes, I get this message after the painting of whole application is changed, before he/she even leaves the application. Here is the code that is executed after the change in Combo box:

            Delphi
            procedure TdmCommon.SetColours; var ASkinInfo: TdxSkinInfo; ABitmap: TBitmap; i : Integer; AColors : TRGBColors; begin if RootLookAndFeel.Painter.GetPainterData(ASkinInfo) then begin ABitmap := ASkinInfo.Bar.Image.Texture.GetAsBitmap; try GetBitmapBits(ABitmap, AColors, True); i := 0; glAppColors.Gradient1 := RGB(AColors[i].rgbRed, AColors[i].rgbGreen, AColors[i].rgbBlue); i := length(AColors) - 1; glAppColors.Gradient2 := RGB(AColors[i].rgbRed, AColors[i].rgbGreen, AColors[i].rgbBlue); finally ABitmap.Free; end; end; with frmMain.rbMain.ColorScheme do begin glAppColors.Background := GetPartColor(rfspRibbonForm); glAppColors.Borders := GetPartColor(rspTabNormal); glAppColors.DelimiterLIne := GetPartColor(rspRibbonBottomEdge); end; end;

            Am I doing something wrong here?

            Best regards,
            Goran

            DevExpress Support Team 9 years ago

              Hello Goran,

              I've created a separate ticket on your behalf ("Invalid operation in GDI+ (Code: 2)" error occurs on changing bitmap). It has been placed in our processing queue and will be answered shortly.

              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.