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

ted leslie tleslie at tcn.net
Thu Jul 28 05:16:44 EDT 2005


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.


-tl


More information about the Gtk-sharp-list mailing list