OpenFileDialog

Bug #70253 reported by Andreas Engelbredt Dalsgaard
2
Affects Status Importance Assigned to Milestone
mono (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Contents of OpenFileDialog.cs:

using System;
using System.Windows.Forms;

class MainClass
{
    public static void Main(string[] args)
    {
        OpenFileDialog o = new OpenFileDialog();
    }
}

Compiled by:
gmcs /reference:System.Windows.Forms.dll OpenFileDialog.cs

When running:
mono OpenFileDialog.exe

Mono System.Windows.Forms Assembly [$auto_build_revision$]
Gtk colorscheme read

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.MimeIconEngine.GetIconIndexForMimeType (System.String mime_type) [0x00000]
  at System.Windows.Forms.UnixFileSystem..ctor () [0x00000]
  at System.Windows.Forms.MWFVFS..ctor () [0x00000]
  at System.Windows.Forms.FileDialog..ctor () [0x00000]
  at System.Windows.Forms.OpenFileDialog..ctor () [0x00000]
  at (wrapper remoting-invoke-with-check) System.Windows.Forms.OpenFileDialog:.ctor ()
  at MainClass.Main (System.String[] args) [0x00000]

Revision history for this message
Sebastian Dröge (slomo) wrote :

This is probably fixed in feisty, runs fine for me without crashing on mono 1.2.1

Changed in mono:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.