× Components and Libraries for Graphics Development, discussions, problems and suggestions.

Question BGRAImageManipulation access violation

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
6 years 9 months ago - 6 years 9 months ago #8139 by universe
BGRAImageManipulation access violation was created by universe
Hello, I noticed an access violation on click (without making selection a window) for BGRAImageManipulation and the code exception is raised from line 2626 in BGRAImageManipulation.pas
procedure TBGRAImageManipulation.MouseUp(Button: TMouseButton;
  Shift: TShiftState; X, Y: integer); 
      //------> Access violation on single click
      if not assigned(rSelectedCropArea) then exit;//this fixes the issue
      if (rSelectedCropArea.Area.Left > rSelectedCropArea.Area.Right) then
        // Swap left and right coordinates
        temp := rSelectedCropArea.Area.Left;
        rSelectedCropArea.Area.Left := rSelectedCropArea.Area.Right;
        rSelectedCropArea.Area.Right := temp;
so I just added the line
if not assigned(rSelectedCropArea) then exit;
It fixes the issue (file attached)

File Attachment:

File Name: bgraimagem...ation.7z
File Size:12 KB

Last edit: 6 years 9 months ago by universe. Reason: added more details

Please Log in or Create an account to join the conversation.

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Offline
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
6 years 9 months ago #8140 by Sternas Stefanos
Replied by Sternas Stefanos on topic BGRAImageManipulation access violation
Thanks Sir
we will add your fix to Lab CT ver 5.6

PilotLogic Architect and Core Programmer

Please Log in or Create an account to join the conversation.