[Gtk-sharp-list] gtk#/mono app crashes when window resizes smaller and widgets disappear

Todd Berman tberman at off.net
Thu Jul 28 13:17:55 EDT 2005

On Thu, 2005-07-28 at 05:16 -0400, ted leslie wrote:
> I have a simple gtk# app that has a ScrollWindow
> when i pull the window in (shrink size of window to nothing)  and the scrollbar in the scrollwindow basicall
> disappears and -  the app crashes with:
> -----------------------------------------------------------------
> QPixmap: Invalid pixmap parameters
> QPainter::begin: Cannot paint null pixmap
> QPainter::setPen: Will be reset by begin()
> QPainter::setBrush: Will be reset by begin()
> QPainter::setBrush: Will be reset by begin()
> QPainter::setPen: Will be reset by begin()
> Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
> in <0x00000> <unknown method>
> in (wrapper managed-to-native) Gtk.Application:gtk_main ()
> in <0x00007> Gtk.Application:Run ()
> in <0x00fc4> Conn_Chat_Server:Main (System.String[] args)
> ------------------------------------------------------------------------
> Its almost list the gtk# lib knows the scrollbar arrow/slider icons finally will no longer be displayed,
> but yet qtk# still wanst to work with a pixmap image, that is null?
> If i take the ScrollWindow out, I can redurce the app. so it basically disappears (no crash)
> Now the exact same app runs on gtk# on Win32 runs fine. So this is very puzzling.

It looks like you are using that qt theme for gtk. And that is whats
crashing. If you try changing your theme to simple, or another theme,
does it fix it? (This would also be why it works on win32).


More information about the Gtk-sharp-list mailing list