GDK assertion errors

Hi list,

Can anyone explain to me what is meant by these messages?

Gdk-CRITICAL **: file gdkgc.c: line 689 (gdk_gc_set_clip_rectangle):
assertion `gc != NULL' failed.

Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion
`gc != NULL' failed.

Gdk-CRITICAL **: file gdkgc.c: line 689 (gdk_gc_set_clip_rectangle):
assertion `gc != NULL' failed.

I understand that I am doing something wrong, but the application runs
OK, and when I am trying to find out where the messages are caused in my
own coding, I find out that it is the Show(True) statement. Well, I
don't think so.....

By the way, wxPython is a magnificent piece of work!!

Kind regards,
D.Kniep

Dick Kniep wrote:

Hi list,

Can anyone explain to me what is meant by these messages?

Gdk-CRITICAL **: file gdkgc.c: line 689 (gdk_gc_set_clip_rectangle):
assertion `gc != NULL' failed.

Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion
`gc != NULL' failed.

Gdk-CRITICAL **: file gdkgc.c: line 689 (gdk_gc_set_clip_rectangle):
assertion `gc != NULL' failed.

I understand that I am doing something wrong, but the application runs
OK, and when I am trying to find out where the messages are caused in my
own coding, I find out that it is the Show(True) statement. Well, I
don't think so.....

Unfortunately these are really hard to track down in wxPython, firstly because X-Windows is by default asyncronous and the errors could be from code that was executed several steps before where you noticed them happen. Secondly tracing through the wxGTK C++ code can be a daunting task sometimes...

If I had to guess I would say that maybe there is something in your app that is trying to draw to the window before it is fully created, or something like that.

By the way, wxPython is a magnificent piece of work!!

Thanks!

ยทยทยท

Kind regards,
D.Kniep

---------------------------------------------------------------------
To unsubscribe, e-mail: wxPython-users-unsubscribe@lists.wxwindows.org
For additional commands, e-mail: wxPython-users-help@lists.wxwindows.org

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!