The documentation for gerror says that null is used to mean you don't want the error info. I have also seen null pass in to this function in many clutter tutorials.
On Tue, Jun 15, 2010 at 12:19 AM, Robert Jordan <[email protected]> wrote: > On 14.06.2010 13:37, Daniel Hughes wrote: >> I'm trying to pinvoke to a clutter function. >> >> The function is defined in the docs as >> >> ClutterActor * clutter_texture_new_from_file (const gchar *filename, >> GError **error); >> The code I have is as follows: >> >> [DllImport ("libclutter-glx-1.0.so.0")] >> private static extern IntPtr clutter_texture_new_from_file (string >> filename, IntPtr errorData); > > This must be "ref IntPtr errorData" unless the function is > documented to work with NULL ptrs. > >> And I call it like this: >> >> IntPtr texture = clutter_texture_new_from_file("myImage.jpeg",IntPtr.Zero); >> however when called like this in monodevelop on ubuntu I get the >> following error. >> >> Unix Transport Error >> Eventally I would like to get the error reporting working so I can get >> the gerror result however firstly I need to get past the Unix >> Transport Error. > > Have you tried to run the app outside monodevelop? > > Robert > > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
