[fpc-devel] Test case for internal error 10998

Peter Vreman pfv at cooldown.demon.nl
Sun Jul 11 18:27:39 EDT 1999


> Hi-
> 
> The attached test case demonstrates the sort of crash I'm getting when
> attempting to compile programs that use the Graphics unit.  To see the
> crash:
> 
> tar zxvf crash-10998.tar.gz
> cd test
> make graphics
> make crashit
> 
> and you should see:
> 
> graphics.pp(7,14) Fatal: Internal error 10998
> 
> These are all stripped down versions of various files from lazarus and
> gtk, just what was needed to cause the crash.  Interesting things to
> note:
> 
> - In graphics.pp, if you make FColor be a type other than TColor, the
> crash does not happen
> - If you do "make crashit" without compiling graphics first, the crash
> does not happen.
> - If the position of "glib" in the uses line of vclglobals.pp is
> switched (or if it is removed), the crash does not happen.
> 
> Ideas, anyone?
add 'gdk' to the uses clauss of graphics.pas and it works also.

But the problem can't solved quickly. It has to do with types that use
definitions from other units. And those other units are not used in the
'main' source where the type is used. 

Peter







More information about the Lazarus mailing list