Re: Error code



On Fri, Apr 06, 2001 at 01:56:57AM +0200, Valery Avaux wrote:
> hello,
> 
> i'got trouble with an error code while running my own apps generated by
> Glade. Everything worked fine until I programmed a drawing area inside
> the main window. Here are the error codes:
> 
> Gdk-CRITICAL **: file gdkgc.c: line 456 (gdk_gc_set_foreground):
> assertion 'gc != NULL' failed.
> Gdk-CRITICAL **: file gdkdraw.c: line 89 (gdk_draw_rectangle) :
> assertion 'drawable != NULL failed.
> Gdk-CRITICAL **: file gdkdraw.c: line 380 (gdk_drw_pixmap) assertion
> 'src != NULL' failed
> 
> Here is the code I used It's this only file where the drawing area was
> programmed and no compiling errors were returned. If anybody could help
> me to see what wrong, it would be very nice

looks like you shouldn't be calling repaint() from main(), wait for the configure event.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]