[Gambas-user] Strange error with arrays

Benoit Minisini gambas at ...1...
Wed Feb 23 11:02:51 CET 2005


On Wednesday 23 February 2005 08:23, Eilert wrote:
> Ha!
>
> You don't have the patch from Benoit! That's true, without that patch,
> the color switches don't run. Benoit explained it like this:
>
> ---
> Yes. The warning messages, and the bug (I think) come from the fact that
> you
> try to create a DrawingArea with width=height=0 px.
>
> I patched the DrawingArea widget, so that when it is cached, the internal
> bitmap cache is always at least one pixel by one pixel.
>
> Here is the patch...
> ---
>
> What he did not explain is how I could avoid this. Maybe I got him
> wrong, but if you see the reason just tell me.
>

I don't know. You must put a breakpoint on the function start to see when 
exactly it is called, and why you set the DrawingArea width and height to 
zero sometimes.

-- 
Benoit Minisini
mailto:gambas at ...1...




More information about the User mailing list