Ulf Möller | 11 Feb 13:22 2006
Picon
Picon

Error in OpenFileDialog

Hi,

I try to use the winforms.OpenFileDialog. In a previous version of 
mono, it runs correctly, but now (since mono 1.1.10) a mono thorw 
an error. 

I only initialize the OpenFileDialog:
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();

I think, this is a bug in the mono version 1.1.13.
Have anyone a workaround for the problem ?

Runtime-Error:
===============================
Unhandled Exception: System.NullReferenceException: Object reference 
not set to  an instance of an object
in <0x00120> System.Windows.Forms.MimeIconEngine:GetIconIndexForFile 
(System.String full_filename)
in <0x000ef> System.Windows.Forms.MWFFileView:DoOneFileInfo 
(System.IO.FileInfo fileInfo)
in <0x00391> 
System.Windows.Forms.MWFFileView:UpdateFileViewByDirectoryInfo 
(System.IO.DirectoryInfo inputDirectoryInfo)
in <0x00124> System.Windows.Forms.MWFFileView:UpdateFileView 
(System.Object directoryInfo_or_string)
in (wrapper remoting-invoke-with-check) 
System.Windows.Forms.MWFFileView:UpdateFileView (object)
in <0x02030> System.Windows.Forms.FileDialog+FileDialogPanel:.ctor 
(System.Windows.Forms.FileDialog fileDialog)
in (wrapper remoting-invoke-with-check) FileDialogPanel:.ctor 
(Continue reading)

Felipe Almeida Lessa | 11 Feb 13:35 2006
Picon

Re: Error in OpenFileDialog

Em Sáb, 2006-02-11 às 13:22 +0100, Ulf Möller escreveu:
> Hi,
> 
> I try to use the winforms.OpenFileDialog. In a previous version of 
> mono, it runs correctly, but now (since mono 1.1.10) a mono thorw 
> an error. 
> 
> I only initialize the OpenFileDialog:
> this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
> 
> I think, this is a bug in the mono version 1.1.13.
> Have anyone a workaround for the problem ?

I don't have this problem here:
--------------------------------------------
$ booish
Welcome to booish, an interpreter for the boo programming language.

Running boo 0.7.5.2013.

The following builtin functions are available:
    dir(Type): lists the members of a type
    help(Type): prints detailed information about a type
    load(string): evals an external boo file
    globals(): returns the names of all variables known to the
interpreter

Enter boo code in the prompt below.
>>> import System.Windows.Forms from "System.Windows.Forms"
>>> dialog = OpenFileDialog()
(Continue reading)

Ulf Möller | 11 Feb 17:51 2006
Picon
Picon

Re: Error in OpenFileDialog

Am Samstag 11 Februar 2006 13:35 schrieb Felipe Almeida Lessa:
> > I try to use the winforms.OpenFileDialog. In a previous version
> > of mono, it runs correctly, but now (since mono 1.1.10) a mono
> > thorw an error.
> >
> > I only initialize the OpenFileDialog:
> > this.openFileDialog1 = new
> > System.Windows.Forms.OpenFileDialog();
> >
> > I think, this is a bug in the mono version 1.1.13.
> > Have anyone a workaround for the problem ?
>
> I don't have this problem here:
> --------------------------------------------
> $ booish
> Welcome to booish, an interpreter for the boo programming
> language.
>
> Running boo 0.7.5.2013.
>
> The following builtin functions are available:
>     dir(Type): lists the members of a type
>     help(Type): prints detailed information about a type
>     load(string): evals an external boo file
>     globals(): returns the names of all variables known to the
> interpreter
>
> Enter boo code in the prompt below.
>
> >>> import System.Windows.Forms from "System.Windows.Forms"
(Continue reading)

Freddie Witherden | 11 Feb 20:41 2006

Error Running WinForms App -- Revisited

As some of you know a little while ago I was having trouble compiling
a very very basic windows form app and getting it to run on mono, once
of the suggestions was to ensure that my version of mono and
libgdiplus are the same and to update them. Well it has taken me a
long time but I have update them both to 1.1.13 (libgdiplus) and
1.1.13.1 for mono.

I tried the same app and got exactly the same error as before:

freddie <at> genware ~/Source-Ch02 $ mono HelloWorld-Win-Button.exe
Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6 14:35:24]
Keyboard: British keyboard layout
KDE colorscheme read

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

in <0x4> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipDrawImageRectI
(intptr,intptr,int,int,int,int)
in <0xffffffa5> (wrapper managed-to-native)
System.Drawing.GDIPlus:GdipDrawImageRectI
(intptr,intptr,int,int,int,int)
in <0x3d> System.Drawing.Graphics:DrawImage
(System.Drawing.Image,int,int,int,int)
(Continue reading)

Pedro Martínez Juliá | 13 Feb 16:24 2006
Picon

Re: Error Running WinForms App -- Revisited

Hi,

As I see in your paste you're running KDE. I've got Gnome and your
sample works right! The only problem can reside in the Desktop dependent
code. Then you can try it in "failsafe" or "gnome", if you have this
last installed, and report the results.

Regards,

    Pedro

El lun, 13--2006 a las 13:25 +0000, Freddie Witherden escribió: 
> Okay, my Glibc version is: 2.3.5-r2 and my version of X11 is X.org  
> 6.8.2-r6. My Linux distribution is Gentoo Linux. I am not sure what  
> you mean by run it in Gnome or X without a desktop, unless you mean  
> in something like a 'failsafe' X.org session.

--

-- 
Pedro Martínez Juliá
\   pedromj <at> gmail.com
)|      WebLog: http://www.pedromj.com/blog
/           Página web: http://www.pedromj.com
IMs: GTalk: pedromj <at> gmail.com
     Jabber: petrux <at> gmail.com
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list
(Continue reading)

Freddie Witherden | 13 Feb 20:26 2006

Re: Error Running WinForms App -- Revisited

I started up a 'failsafe' session, which is no more than a terminal  
and this is what I got:

Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6  
14:35:24]
Keyboard: British keyboard layout
Gtk colorscheme read

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Stacktrace:

in <0x4> (wrapper managed-to-native)  
System.Drawing.GDIPlus:GdipDrawImageRectI  
(intptr,intptr,int,int,int,int)
in <0xffffffa5> (wrapper managed-to-native)  
System.Drawing.GDIPlus:GdipDrawImageRectI  
(intptr,intptr,int,int,int,int)
in <0x3d> System.Drawing.Graphics:DrawImage  
(System.Drawing.Image,int,int,int,int)
in <0xffffffdb> (wrapper remoting-invoke-with-check)  
System.Drawing.Graphics:DrawImage (System.Drawing.Image,int,int,int,int)
in <0x3b> System.Drawing.Bitmap:.ctor (System.Drawing.Image,int,int)
in <0xffffe65a> (wrapper remoting-invoke-with-check)  
System.Drawing.Bitmap:.ctor (System.Drawing.Image,int,int)
in <0x3f2> System.Drawing.Icon:ToBitmap ()
(Continue reading)

Peter Dennis Bartok | 14 Feb 20:24 2006

Re: Error Running WinForms App -- Revisited

Freddie,

IRC channel is #mono-winforms, on irc.gimp.net.

Would love to resolve this, before we cut 1.1.13.3

Cheers,
 Peter

-----Original Message-----
From: "Freddie Witherden" <freddie.witherden <at> googlemail.com>
To: "Pedro Martínez Juliá" <pedromj <at> gmail.com>; "mono-winforms-list" 
<mono-winforms-list <at> lists.ximian.com>
Date: 14 February, 2006 10:40
Subject: Re: [Mono-winforms-list] Error Running WinForms App -- Revisited

I started up a 'failsafe' session, which is no more than a terminal
and this is what I got:

Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6
14:35:24]
Keyboard: British keyboard layout
Gtk colorscheme read

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

(Continue reading)

Freddie Witherden | 14 Feb 22:49 2006

Re: Error Running WinForms App -- Revisited

Just a small update for all of you who are watching this topic/ 
thread. With help from the very friendly people on irc.gimp.net #mono- 
winforms we managed to find out that the cause of this problem was  
because of the -fomit-frame-pointer CFLAG. which for some reason was  
causing the application to seg fault.

By Compiling the library without the -fomit-frame-pointer cflag we  
were able to solve the problem. The proposed solution is to patch the  
configure/make file script to check if the -fomit-frame-pointer is  
turned on and if so disable it.

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Pedro Martínez Juliá | 15 Feb 01:05 2006
Picon

TrayIcon

Hi,

I want to test TrayIcon classes and when I run the samples (in winforms
module from SVN) I can see a new window with the Icon... I'm using Gnome
and I thought that the icon should be in gnome's tray (or freedesktop's
tray). Can I get it there in any way?

Regards,

    Pedro

--

-- 
Pedro Martínez Juliá
\   pedromj <at> gmail.com
)|      WebLog: http://www.pedromj.com/blog
/           Página web: http://www.pedromj.com
IMs: GTalk: pedromj <at> gmail.com
     Jabber: petrux <at> gmail.com
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org

_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list <at> lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Pascal Fresnay | 17 Feb 23:15 2006
Picon

GDI+ bug

Hi,
I attached a simple GDI+ apps that works well on .NET, but failed with
mono, both on Windows and Linux (with mono 1.1.13) with this error :

Mono System.Windows.Forms Assembly [Revision: 54007; built: 2005/12/6
14:35:24]
Keyboard: French keyboard layout
Gtk not found (missing LD_LIBRARY_PATH to libgtk-x11-2.0.so?), using
built-in colorscheme

Unhandled Exception: System.IndexOutOfRangeException: Array index is out
of range.
in <0x0008d> System.Drawing.Graphics:DrawBeziers (System.Drawing.Pen
pen, System.Drawing.Point[] points)
in (wrapper remoting-invoke-with-check)
System.Drawing.Graphics:DrawBeziers
(System.Drawing.Pen,System.Drawing.Point[])
in <0x002f2> Exemple6d.Form1:OnPaint
(System.Windows.Forms.PaintEventArgs e)
in <0x00498> System.Windows.Forms.Control:WndProc
(System.Windows.Forms.Message m)
in <0x0000d> System.Windows.Forms.ScrollableControl:WndProc
(System.Windows.Forms.Message m)
in <0x0000d> System.Windows.Forms.ContainerControl:WndProc
(System.Windows.Forms.Message m)
in <0x008dc> System.Windows.Forms.Form:WndProc
(System.Windows.Forms.Message m)
in <0x00014> System.Windows.Forms.Control+ControlNativeWindow:WndProc
(System.Windows.Forms.Message m)
in <0x0011e> System.Windows.Forms.NativeWindow:WndProc (IntPtr hWnd, Msg
(Continue reading)


Gmane