Menu

#3 Access violation in DrawValue

open
nobody
None
5
2002-06-19
2002-06-19
No

Version 1.13. Access violation occurs in procedure
TJvCustomInspectorItem.DrawValue when
running the default example application. Fixed by
adding 'if assigned' test, don't know if it breaks anything
else (need some unit tests),

procedure TJvCustomInspectorItem.DrawValue(const
ACanvas: TCanvas);
var
S: string;
ARect: TRect;
SafeColor: TColor;
begin
if Assigned(Data) then
begin
.. do rest of procedure..
end;
end;

Discussion


Log in to post a comment.