You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lazarus 2.0.12
FPC 3.2.0
SVN Revision: 64642.
Downloaded the zip file code.codebot-master
loaded the package codebot and hit compile.
Compilation error in gdiplus.pas, line 11906: Can't determine which overloaded function to call. Function in question is TGdiBitmap.create(size * 2, Size * 2)
This is really weird. I checked all the constructors you have in this class:
It seems to me that the call at line 11906 is calling constructor number 5 which has a signature that is different from the signatures of the other constructors. Further, the superclass TGDImage does not have a constructor that could clash with constructor number 5. The same holds true for TInterfacedObjet and TObject.
Could that be a bug in the compiler?
The text was updated successfully, but these errors were encountered:
I'm on Win64 and the compiler is getting confused between declarations 5 and 9 because you're making a call that's passing 2 * Size, and that could be interpreted as a Qword if 2 * size overflows the integer bounds.
Solution: If you're certain that 2 * Size will always be less than MaxInt, then either typecast 2 * Size to integer when passing it or assign it to an integer variable before making the call.
Lazarus 2.0.12
FPC 3.2.0
SVN Revision: 64642.
Downloaded the zip file code.codebot-master
loaded the package codebot and hit compile.
Compilation error in gdiplus.pas, line 11906: Can't determine which overloaded function to call. Function in question is TGdiBitmap.create(size * 2, Size * 2)
This is really weird. I checked all the constructors you have in this class:
It seems to me that the call at line 11906 is calling constructor number 5 which has a signature that is different from the signatures of the other constructors. Further, the superclass TGDImage does not have a constructor that could clash with constructor number 5. The same holds true for TInterfacedObjet and TObject.
Could that be a bug in the compiler?
The text was updated successfully, but these errors were encountered: