OpenFileDialog , gnome_icon_lookup exception

View: New views
3 Messages — Rating Filter:   Alert me  

OpenFileDialog , gnome_icon_lookup exception

by fevans :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm getting in exception in OpenFileDialog (in some directories, but not all).

I've compiled mono from source (2.4) on RedHat Linux 64-bit. This is almost certainly an install issue. I'm linking with the wrong version of libgnomeui, or something like that. Does anyone have advice for tracking this one down?

Thanks in advance.

===========================================
Unhandled Exception: System.EntryPointNotFoundException: gnome_icon_lookup
  at (wrapper managed-to-native) System.Windows.Forms.GnomeUtil:gnome_icon_lookup (intptr,intptr,string,string,intptr,string,System.Windows.Forms.GnomeUtil/GnomeIconLookupFlags,intptr)
  at System.Windows.Forms.GnomeUtil.GetIcon (System.String file_name, System.String mime_type, Int32 size) [0x00000]
  at System.Windows.Forms.GnomeHandler.AddAndGetIconIndex (System.String filename, System.String mime_type) [0x00000]
  at System.Windows.Forms.MimeIconEngine.GetIconIndexForFile (System.String full_filename) [0x00000]
  at System.Windows.Forms.FileSystem.GetFileFSEntry (System.IO.FileInfo fileinfo) [0x00000]
  at System.Windows.Forms.FileSystem.GetNormalFolderContent (System.String from_folder, System.Collections.Specialized.StringCollection filters, System.Collections.ArrayList& directories_out, System.Collections.ArrayList& files_out) [0x00000]
  at System.Windows.Forms.FileSystem.GetFolderContent (System.Collections.Specialized.StringCollection filters, System.Collections.ArrayList& directories_out, System.Collections.ArrayList& files_out) [0x00000]
  at System.Windows.Forms.MWFVFS+WorkerThread.GetFolderContentThread () [0x00000]

Re: OpenFileDialog , gnome_icon_lookup exception

by Ivan Zlatev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Seems to me like you are missing libgnomeui, which is used to get the
icons for the files in the GNOME WinForms FileDialog backend.

Which raises the issue of what should the WinForms team do for the
next release. libgnomeui is now deprecated and is going to be removed
- http://live.gnome.org/LibgnomeMustDie.


Kind Regards,

Ivan Zlatev
http://ivanz.com


On Wed, Sep 23, 2009 at 8:11 PM, fevans <fevans@...> wrote:

>
> I'm getting in exception in OpenFileDialog (in some directories, but not
> all).
>
> I've compiled mono from source (2.4) on RedHat Linux 64-bit. This is almost
> certainly an install issue. I'm linking with the wrong version of
> libgnomeui, or something like that. Does anyone have advice for tracking
> this one down?
>
> Thanks in advance.
>
> ===========================================
> Unhandled Exception: System.EntryPointNotFoundException: gnome_icon_lookup
>  at (wrapper managed-to-native)
> System.Windows.Forms.GnomeUtil:gnome_icon_lookup
> (intptr,intptr,string,string,intptr,string,System.Windows.Forms.GnomeUtil/GnomeIconLookupFlags,intptr)
>  at System.Windows.Forms.GnomeUtil.GetIcon (System.String file_name,
> System.String mime_type, Int32 size) [0x00000]
>  at System.Windows.Forms.GnomeHandler.AddAndGetIconIndex (System.String
> filename, System.String mime_type) [0x00000]
>  at System.Windows.Forms.MimeIconEngine.GetIconIndexForFile (System.String
> full_filename) [0x00000]
>  at System.Windows.Forms.FileSystem.GetFileFSEntry (System.IO.FileInfo
> fileinfo) [0x00000]
>  at System.Windows.Forms.FileSystem.GetNormalFolderContent (System.String
> from_folder, System.Collections.Specialized.StringCollection filters,
> System.Collections.ArrayList& directories_out, System.Collections.ArrayList&
> files_out) [0x00000]
>  at System.Windows.Forms.FileSystem.GetFolderContent
> (System.Collections.Specialized.StringCollection filters,
> System.Collections.ArrayList& directories_out, System.Collections.ArrayList&
> files_out) [0x00000]
>  at System.Windows.Forms.MWFVFS+WorkerThread.GetFolderContentThread ()
> [0x00000]
> --
> View this message in context: http://www.nabble.com/OpenFileDialog-%2C-gnome_icon_lookup-exception-tp25531258p25531258.html
> Sent from the Mono - WinForms mailing list archive at Nabble.com.
>
> _______________________________________________
> Mono-winforms-list maillist  -  Mono-winforms-list@...
> http://lists.ximian.com/mailman/listinfo/mono-winforms-list
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@...
http://lists.ximian.com/mailman/listinfo/mono-winforms-list

Re: OpenFileDialog , gnome_icon_lookup exception

by Ivan Zlatev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 23, 2009 at 10:05 PM, Ivan Zlatev <contact@...> wrote:
> Seems to me like you are missing libgnomeui, which is used to get the
> icons for the files in the GNOME WinForms FileDialog backend.
>
> Which raises the issue of what should the WinForms team do for the
> next release. libgnomeui is now deprecated and is going to be removed
> - http://live.gnome.org/LibgnomeMustDie.

For the record I have filed a bug to track the libgnomeui issue -
http://bugzilla.novell.com/show_bug.cgi?id=541545

Kind Regards,

Ivan Zlatev
http://ivanz.com
_______________________________________________
Mono-winforms-list maillist  -  Mono-winforms-list@...
http://lists.ximian.com/mailman/listinfo/mono-winforms-list