Hi,
I have the same problem with fatal error "Integer overflow" in BlendColor method.
I have to change source code to:
class function TGraphicsProvider.BlendColor(Color1, Color2: TColor; Amount: Integer): TColor;
var
Value: Integer;
v,a,c1,c2 :Int64;
begin
Assert(Amount in [0..255]);
Value := Amount xor 255;
if Integer(Color1) < 0 then Color1 := GetSysColor(Color1 and $000000FF);
if Integer(Color2) < 0 then Color2 := GetSysColor(Color2 and $000000FF);
c1 := Color1;
c2 := Color2;
a := Amount;
v := Value;
Result := (((
((c1 and $FF00FF) * a +
(c2 and $FF00FF) * v) and $FF00FF00 +
((c1 and $00FF00) * a +
(c2 and $00FF00) * v) and $00FF0000) shr 8) and $FFFFFFFF);
end;
- Bergsoft Forum
- → Viewing Profile: Posts: vhorky
Community Stats
- Group Members
- Active Posts 5
- Profile Views 6,888
- Age 38 years old
- Birthday July 10, 1988
-
Gender
Male
-
Location
Czech republic
0
Neutral
User Tools
Friends
vhorky hasn't added any friends yet.
Latest Visitors
Posts I've Made
In Topic: BlendColor interger overflow
07 April 2011 - 10:34 PM
In Topic: Can't install NextGrid packages
02 December 2010 - 01:05 PM
QUOTE (vhorky @ Dec 2 2010, 01:23 PM) <{POST_SNAPBACK}>
Hallo, I have the same problem with this error message [DCC Fatal Error] NxCommonDsgn_d2009.dpk(35): F2039 Could not create output file 'C:\Documents and Settings\All Users\Dokumenty\RAD Studio\6.0\Bpl\NxCommonRun_d2009.bpl'. I try to install new version from member area...
So, problems are in outputs directories for BPL and DCP. I don't know why, but Delphi 2009 has implicit setting for this directories with read-only option to C:\Document and Settings\All users\Documents\RAD Studio\Bpl
In Topic: Can't install NextGrid packages
02 December 2010 - 12:23 PM
QUOTE (Boki (Berg) @ May 13 2010, 12:34 AM) <{POST_SNAPBACK}>
Hello Ziki,
Maybe is something wrong with BPL folder. Maybe is read-only (?)
NxCommonRun is most common package and it should install easy. Maybe you can try to change output directory for package.
Best regards
Maybe is something wrong with BPL folder. Maybe is read-only (?)
NxCommonRun is most common package and it should install easy. Maybe you can try to change output directory for package.
Best regards
Hallo, I have the same problem with this error message [DCC Fatal Error] NxCommonDsgn_d2009.dpk(35): F2039 Could not create output file 'C:\Documents and Settings\All Users\Dokumenty\RAD Studio\6.0\Bpl\NxCommonRun_d2009.bpl'. I try to install new version from member area...
- Bergsoft Forum
- → Viewing Profile: Posts: vhorky
- Privacy Policy



Find content
