More Issues With sDBNavigator v9.17

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #36359
    tmorris
    Participant

    I found a design time error related to the sDBNavigator control. I expect it's issue is related to the runtime issues where the buttons are not being initialized. Attached is a sample project. If you try to check/uncheck any of the active buttons on the frame unit or even try to resize the frame you get an IDE error. Also it will not link when trying to build the project. The issue does not exist in version 9.12.

    #52759
    Support
    Keymaster

    Hello!

    Try this patched file, please.

    #52779
    tmorris
    Participant
    'Support' wrote:

    Hello!

    Try this patched file, please.

    Sorry. Does not fix the problem. Did you try the example project I uploaded?

    #52777
    Support
    Keymaster

    I have tried it and does not have the error now.

    The AlphaDB package has been rebuilt with patched file?

    #52781
    tmorris
    Participant

    This is the source of the problem. It is related to hints. The other array for which you moved the initialization code:

    procedure TsDBNavigator.SetHints(Value: TStrings);

    begin

    if Value.Text = FDefHints.Text then

    FHints.Clear

    else

    FHints.Assign(Value);

    end;

    There are situations where a nil pointer is being passed as “Value” at design time. The modification below fixed it for me.

    procedure TsDBNavigator.SetHints(Value: TStrings);

    begin

    if value <> nil then

    begin

    if Value.Text = FDefHints.Text then

    FHints.Clear

    else

    FHints.Assign(Value);

    end;

    end;

    I am using XE6.

    #52783
    Support
    Keymaster

    Thank you, these changes will be added in the nearest release.

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