pinvoke to clutter function

Posted by trampster on Stack Overflow See other posts from Stack Overflow or by trampster
Published on 2010-06-14T11:18:40Z Indexed on 2010/06/14 11:22 UTC
Read the original article Hit count: 252

Filed under:
|
|
|

I'm trying to pinvoke to a clutter function.

The function is defined in the docs as

ClutterActor * clutter_texture_new_from_actor (ClutterActor *actor);

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);

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about gtk