Access Violation when deleting TsCheckbox

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #70171
    Support
    Keymaster

      Hello!
      Is it possible to make a demo with such dialog and where the error is repeated?

      P.S. Is there a reason why you have FImageChangeLink.Free rather than FreeAndNil(FImageChangeLink) in the Destroy?

      No reason. Do you think, FreeAndNil will be better there? Component is killed in any case there.

      #70178
      Alan Montgomery
      Participant

        Skin is Material Dark and needs to be in C:\AlphaSkins\Skins
        Run the app and press enter to get the exception.

        FreeAndNil is always better than Free – if you do end up using it later you can tell it is a nil pointer use rather than an arbitary address (or worse it works and corrupts some other object). It also means the exception is in the the deleted object not several levels down.

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

          Thank you
          Could you share source files also, please?
          Can’t run Exe, unfortunately, many Bpl files are required there.

          #70188
          Alan Montgomery
          Participant

            I have attached a reworked exe and full project.
            It should now need less bpls – hopefully only Berlin ones.

            To see the issue run the exe and select the checkbox, then press enter.
            To see it work correctly click the apply button.
            They both call PopulateEditor that destroys the TsCheckBox.

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

              Thank you, this error will be fixed in the nearest release.

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