[Gtk-sharp-list] ListBase struct
Fri, 02 Apr 2004 15:33:32 -0600
On Fri, 2004-04-02 at 14:20, Jeremy Wells wrote:
> GnomeVFSMimeApplication self = new GnomeVFSMimeApplication();
> self = (GnomeVFSMimeApplication) Marshal.PtrToStructure (raw,
> self.GetType ());
> with the very last line being the problem. I can't understand how
> ListBase is even involved in this. can anyone help me out? Original file
> is attached.
It's because of this line in your GnomeVFSMimeApplication declaration:
public List supported_uri_schemes;
That field is most likely a GList*, and should be represented as a
private IntPtr field. You can expose a GLib.List property to wrap the
raw list pointer in the field.
Mike Kestner <email@example.com>