- Posts: 118
- Thank you received: 8
- Forum
- CodeTyphon Studio
- CodeTyphon Studio Components and Libraries
- Graphics Development
- BGRAImageManipulation access violation
×
Components and Libraries for Graphics Development, discussions, problems and suggestions.
Question BGRAImageManipulation access violation
- universe
-
Topic Author
- Offline
- Junior Member
-
Less
More
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.passo I just added the lineIt fixes the issue (file attached)
Thanks
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;
....
....
if not assigned(rSelectedCropArea) then exit;
Thanks
Attachments:
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
-
- Offline
- Moderator
-
- Ex Pilot, M.Sc, Ph.D
6 years 9 months ago #8140
by Sternas Stefanos
PilotLogic Architect and Core Programmer
Replied by Sternas Stefanos on topic BGRAImageManipulation access violation
Thanks Sir
we will add your fix to Lab CT ver 5.6
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.