Welcome, Guest
Username: Password: Remember me
Components and Libraries for Graphics Development, discussions, problems and suggestions.
  • Page:
  • 1

TOPIC:

BGRAImageManipulation access violation 9 years 2 months ago #8139

  • universe
  • universe's Avatar Topic Author
  • Offline
  • Junior Member
  • Junior Member
  • Posts: 122
  • Thank you received: 8
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
      begin
        // Swap left and right coordinates
        temp := rSelectedCropArea.Area.Left;
        rSelectedCropArea.Area.Left := rSelectedCropArea.Area.Right;
        rSelectedCropArea.Area.Right := temp;
      end; 
....
....
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


Thanks

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

Last edit: by universe. Reason: added more details

BGRAImageManipulation access violation 9 years 2 months ago #8140

  • Sternas Stefanos
  • Sternas Stefanos's Avatar
  • Away
  • Moderator
  • Moderator
  • Ex Pilot, M.Sc, Ph.D
  • Posts: 4535
  • Thank you received: 1114
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.

  • Page:
  • 1