Hello,
I wrote a small application some time ago (~2years?) that use a glwindow, 
but when I tried to use it now, i get runtime errors and the fltk 
controls do not show, the area comes up black. Only the glwindow appears 
to work.

Correction: On first attempt the app would not start at all. I had to 
recompile it. I downloaded the newest fltk2 (r6970), recompiled and the 
program ran, but with a string of error messages to the console:

 X_PolySegment: BadMatch (invalid parameter attributes) 0x4400005
 X_PolySegment: BadMatch (invalid parameter attributes) 0x4400005
 X_PolyFillRectangle: BadMatch (invalid parameter attributes) 0x4400005
 X_PolyFillRectangle: BadMatch (invalid parameter attributes) 0x4400005

etc.

I have tried to run with ltrace, to see what calls produce the error,
but I don't now how to do this with X protocol errors, since the errors 
are asynchronous. I found on the net that one can get synchronous 
behavior by setting the global variable _Xdebug=1 at the start of main(), 
but I still get a large number of error messages batched together:
(I do "ltrace ./myapp dmp > myapp.ltrace 2>&1" to get the error messages 
along with the trace)

...

_ZN4fltk8GlWindow6layoutEv(0x9913078, 136, 12, 882, 802) = 0
_ZN4fltk6Widget6resizeEii(0x9912f70, 906, 826, 882, 802) = 0
_ZN4fltk6Widget6resizeEii(0x9912d68, 1000, 988, 906, 826) = 0
<... _ZN4fltk6Window6layoutEv resumed> )         = 0
_ZN4fltk6Window5flushEv(0x9912008, 0x9914d28, 0xbf9c3e48, 0x196b11, 0x9914d28 
<unfinished ...>
_ZN4fltk6Window4drawEv(0x9912008, 1000, 988, 0, 1000X_PolyFillRectangle: 
BadMatch (invalid parameter attributes) 0x4400005
 <unfinished ...>
_ZN4fltk5Group4drawEv(0x9912d68, 0, 827724, 0xad6000, 0xae4ff4X_PolySegment: 
BadMatch (invalid parameter attributes) 0x4400005
X_PolySegment: BadMatch (invalid parameter attributes) 0x4400005
X_PolySegment: BadMatch (invalid parameter attributes) 0x4400005
X_PolySegment: BadMatch (invalid parameter attributes) 0x4400005

...

(many more messages)

Any suggestions?

Thanks, Enrique
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to