[Gtk-sharp-list] GIO# FileFactory.NewForCommandlineArgs System.EntryPointNotFoundException

Christian Hoff christian_hoff at gmx.net
Sun Jun 14 03:44:06 EDT 2009


Yes, the GIO function is actually called g_file_new_for_commandline_arg 
  ;-) . Attached is a simple patch to fix the issue(I think we can break 
compatibility here since the old implementation was non-working). 
Stephane, could you review? I assume the patch has to go into the 
gio-sharp module as well?

Christian

Dan Saul wrote:
> Hi,
>
> I have compiled Mono# from SVN to get access to GIO#. For the most 
> part it works, I have no problem with the code:
>
> base_dir = FileFactory.NewForPath(v);
>
> However if I change it to
>
> base_dir = FileFactory.NewForCommandlineArgs(v);
>
> I would like to change this so that one can enter a URI or a Path on 
> the command line.
>
> I recieve the following exception:
>
> Unhandled Exception: System.EntryPointNotFoundException: 
> g_file_new_for_commandline_args
>
> Dan
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gtk-sharp-list maillist  -  Gtk-sharp-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/gtk-sharp-list
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gio-file-factory-patch-v1_0.diff
Type: text/x-patch
Size: 716 bytes
Desc: not available
Url : http://lists.ximian.com/pipermail/gtk-sharp-list/attachments/20090614/89856349/attachment.bin 


More information about the Gtk-sharp-list mailing list