[Mono-winforms-list] "X Error: BadDrawable" while running simple Form

XraniX xranix@tiscali.it
Mon, 15 Mar 2004 15:42:57 +0100

Hi to all,

I'm trying to make a simple windows form running in linux.
It's  a form with a textbox, a button and an info dialog.

I've installed - recompiling from cvs (in this sequence):

- wine from cvs (patched with wine-sharedlib from mcs 15.03.2004)
- cairo + libpixman from cvs (taken on 10th March)
- libgdiplus from cvs (15.03.2004)
- mono + mcs from cvs (15.03.2004 with monocharge to compile first time)
- gtk-sharp + monodoc.

The program compiles without errors. When I launch i it starts, then
disappears immediatly.

The error message:

****************** Starting up
Control notification Code 768 Id = Hwnd 65573
Control notification Code 1024 Id = Hwnd 65573
Control notification Code 256 Id = Hwnd 65573
WARNING: Missing call to FillRectangle in OnPaintBackground
GdipCreateBitmapFromGraphics: This routine has not been checked for
stride size
WARNING: bitmap.c(230) initializing bitmap to 0xff in
GdipCreateBitmapFromGraphics (for SWF)
DrawText ToHfont() hack active
X Error of failed request:  BadDrawable (invalid Pixmap or Window
  Major opcode of failed request:  157 (RENDER)
  Minor opcode of failed request:  4 (RenderCreatePicture)
  Resource id in failed request:  0x0
  Serial number of failed request:  96
  Current serial number in output stream:  127

Does anybody has an idea? I can post the source if would be interesting
(very simple).

I receive the same errors with the test programs in msc source under

Thanks a lot for any advice..

bye Walt

XraniX <xranix@tiscali.it>