I have the following code:

} catch (Exception ex) {
    Gtk.Application.Invoke(delegate
    {
MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok,"{0}", ex.ToString()+" "+ex.Message);
        md.Run();
        md.Destroy();
    });
}

The code work ok in windows 7 but in ubuntu 11.04 the messageBox show but without text and the terminal show this warning:

(SerialFileTransfer:3147): Gtk-WARNING **: Failed to set text from markup due to error parsing markup: Error en la línea 2, carácter 90: Carácter «>» impropio, se esperaba el carácter '=' después del nombre de atributo «unknown» del elemento «filename»

But when I changed the constructor of MessageDialog to this:

MessageDialog md = new MessageDialog(this, DialogFlags.Modal, MessageType.Error, ButtonsType.Ok,false,"{0}", ex.ToString()+" "+ex.Message);

The messageBox works fine on win7 and linux.

I supose than exist a problem with constructors of MessageBox in linux.

Regards.

--
Jesus Eguiluz
Ingeniero Electrónico.
Investigación y Desarrollo
Andes Electrónica Ltda.
+56 2 347-8780
www.andeselec.com

_______________________________________________
Gtk-sharp-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/gtk-sharp-list

Reply via email to