[gcompris-devel] Re: `Divide by zero' bug...
Bruno Coudoin
bcoudoin at anfora.fr
Wed Oct 10 01:08:05 UTC 2001
Herman,
Great, I am glad you found these bugs.
It will be included in the next gcompris release for sure.
It can be that I also have the problem. Gcompris is pretty unstable and
it craches often at board entry. So this is perhaps also the bug I am
looking for ;)
So the latest issue on alpha is the font. Have you tried to tweak the
code and select a different font that would work for you?
Thanks a lot for this bug report.
Bruno.
le mer 10-10-2001 at 08:29 Herman Bruyninckx a écrit :
> Bruno,
>
>
> I spotted the `divide by zero' problem...
>
> The two boards that have the bug (on my alpha at least) are
> clockgame.c and draw.c. draw.c has these lines:
>
> gcomprisBoard->number_of_sublevel=0;
> gcompris_bar_set_maxtimer(gcomprisBoard->number_of_sublevel);
>
> That means that maxtimer is set to zero, and this gives an error in
> the subsequent
>
> gcompris_bar_set_timer(gcomprisBoard->sublevel);
>
> where one has ``timer/maxtimer''.
>
> clockgame.c has a bit a different code, in that the
> gcomprisBoard->number_of_sublevel=3;
> comes _after_ the
> gcompris_bar_set_maxtimer(gcomprisBoard->number_of_sublevel);
>
> It is strange tough that you don't have this problem... It _is_
> sequence-dependent however, because maxtimer is a global variable...
>
> Herman
>
> Herman
More information about the Gcompris-devel
mailing list