AV Error Toggling SkinManager Active/Inactive with cxGrid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #38216
    tmorris
    Participant

    Attached is the example.

    Behavior happens with a tabbed DevExpress cxGrid. When toggling the active property it throws an AV. Specifically in acLFPainter. It appears the following code is suspect:

    Code:
    function Skinned(Ctrl: TControl = nil): boolean;
    var
    F: TCustomForm;
    begin
    Result := False;
    DefManager := DefaultManager;
    if DefManager <> nil then begin
    if Ctrl <> nil then begin
    F := GetParentForm(Ctrl);
    if (F = nil) or not WndIsSkinned(F.Handle) then
    Exit;
    end;
    Result := DefManager.CommonSkinData.Active
    end;
    end;

    The call to DefManager.CommonSkinData.Active appears to be a deprecated property.

    Also maybe it should be SkinCommonInfo?

    #59320
    Support
    Keymaster

    Hello and thank you for the demo. This error will be fixed in the nearest release.

    “DefManager.IsActive” should be used there.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.