Hi,
i've migrated my project to the new version AC 6.50 and i get an access violation when i click on a sColorSelect button.
here is where the exception is raised, unit sColorDialog, the first line of this procedure :
CODE
procedure TsColorDialogForm.CreateExtBmp;
var
x, y : integer;
ImgWidth, ImgHeight : integer;
begin
ImgWidth := ColorPanel.Width – dblWidth;
ImgHeight := ColorPanel.Height – dblWidth;
ExtBmp := CreateBmp24(ImgWidth, ImgHeight);
for y := 0 to ImgHeight – 1 do
for x := 0 to ImgWidth – 1 do ExtBmp.Canvas.Pixels[x, y] := Hsv2Rgb(x * 360 / ImgWidth, 1 – y / ImgHeight, 1 – y / (ImgHeight * 3)).C;
end;
I do not understand, because when i put a scolorselect button on a new project, i do not have this problem…?
what can i do ?
Regards,
Christophe