Bug in TsRadioGroup prevents unselecting all items

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #69151
    HeDiBo
    Participant

    The coding sRadioGroup1.ItemIndex := -1 will not clear item selection (in TRadioGroup it does).

    Try it in the enclosed project.

    This is quite a serious bug 🤐

    Attachments:
    You must be logged in to view attached files.
    #69153
    HeDiBo
    Participant

    If you place a breakpoint on the first statement
    sRadioGroup1.ItemIndex := 0;
    And try to put a watch on ItemIndex, my Delphi IDE (my Delphi is XE4) throws an access violation. It doesn’t do that on the second statement
    RadioGroup1.ItemIndex := 0;
    Something is terribly wrong 🤢

    #69173
    Support
    Keymaster

    Thank you for the demo, it will be fixed in the v15.13 ItemIndex value is changed, just Checkbox not refreshed there.
    Where execution is stopped when AV is occured? (Can’t repeat AV)

    #69174
    HeDiBo
    Participant

    Where execution is stopped when AV is occured? (Can’t repeat AV)

    The IDE itself throws an exception when trying to add a watch. App is not running then.

    #69187
    HeDiBo
    Participant

    This is the exception, if I press Ctrl-F7 upon reaching a breakpoint on the first statement (AC 15.13)
    The problem of not refreshing is solved.

    Attachments:
    You must be logged in to view attached files.
    #69200
    Support
    Keymaster

    This IDE exception is repeated?
    How can I repeat it step-by-step?

    #69207
    HeDiBo
    Participant

    The compiler is Delphi XE4. The debug environment is Win32.
    Set a breakpoint on this statement:

    procedure TBaseForm.sButton1Click(Sender: TObject);
    begin
       sRadioGroup1.ItemIndex := 0;   << Set a breakpoint on this statement.
       RadioGroup1.ItemIndex := 0;
    end;

    Click the button “Select One”
    Upon reaching the breakpoint, click on the first ItemIndex property.
    Then press Ctrl-F7 (Evaluate/Modify).
    I get an Internal Error : F2084 Internal Error: AV06EA8554-R80000000-0

    #69227
    Support
    Keymaster

    I think, this internal error is linked with big amount of links between units in the package.
    Other version of th Delphi hasn’t this issue.
    I will check what I can do there.

    #69455
    HeDiBo
    Participant

    Not solved in 15.15

    #69506
    Support
    Keymaster

    Sorry, I was checked links between units and they are optimal now, I think.
    Haven’t idea how to solve this internal error. I only saw articles like this in the net.

    #69580
    HeDiBo
    Participant

    It seems a compiler error. Don’t bother.
    Please close this topic.

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Bug in TsRadioGroup prevents unselecting all items’ is closed to new replies.