[Mono-dev] Marshalling (Segmentation fault)

Abir Bhattacharya abirb at 2pirad.com
Thu Oct 11 07:09:15 EDT 2007

The 'C' prototype :

#ifndef PICTURE_H
#define PICTURE_H

#include "def.h"

struct fgrab {
	int bufferlength;
	unsigned char *buffer[1000];
} typedef fgrab_struct;

fgrab_struct fbuffergrab();
void fbufferflush(fgrab_struct fgbuffer);


-----Original Message-----
From: mono-devel-list-bounces at lists.ximian.com
[mailto:mono-devel-list-bounces at lists.ximian.com] On Behalf Of Robert Jordan
Sent: Thursday, October 11, 2007 4:32 PM
To: mono-devel-list at lists.ximian.com
Subject: Re: [Mono-dev] Marshalling (Segmentation fault)

Abir Bhattacharya wrote:
> [DllImport ("lib.so")]
> Private static extern ImgStruct gbuffergrab(); // gbuffergrab is the 'C'
> method which returns type struct

Please post the C prototype as well.


Mono-devel-list mailing list
Mono-devel-list at lists.ximian.com

-- Visit us at http://www.2pirad.com/ --

More information about the Mono-devel-list mailing list