[Gambas-user] Overflow Errors with Gambas 3.18 and Master

Benoit Minisini benoit.minisini at gambas-basic.org
Fri Jan 13 22:29:44 CET 2023


Le 13/01/2023 à 22:13, Claus Dietrich a écrit :
> Friday the 13th :-) ....
> 
> This morning I received an email from a friend with a screenshot of an 
> error message which occurred in his Gambas IDE after he upgraded to 3.18:
> 
> This application has raised an unexpected error and must abort
> 
> [7] Overflow
> 
> [gb.form.editor].CDocument.HighlightLine.935
> 
> He seems to run the IDE under QT5.

This is a bug to fix.

> 
> Today I further noted that my Gambas Desktop-Clock (also QT5) doesn't 
> work any longer with the Master. The app throws the error message:
> 
> This application has raised an unexpected error and must abort
> 
> [7] Overflow
> 
> FMain.PaintClock.66
> 
> The crash occurs in this line, where the background color of the 
> clockface is set :
> 
> Paint.Brush = Paint.Color(ClockFaceColor + 16777216 * ClockFaceOpacity).
> 
> At the point of crash ClockFaceColor=4210752 and ClockfaceOpacity is 
> 128. The resulting hex color is 80404040. Actually it should be usabel 
> up to FF404040 for a maximum opacity which I normally use for my Desktop 
> clock. A bug? Could the error message received by my friend have the 
> same background?

The previous IDE was generating incorrect code that overflows for 
colors. Normally if you recompile the project, it should be 
automatically fixed.

Regards,

-- 
Benoît Minisini.



More information about the User mailing list