[Mono-list] Out parameter

Everaldo Canuto everaldo.canuto@bol.com.br
Wed, 25 Sep 2002 15:44:27 -0300


A have declared external function:

[DllImport("X11")]
extern public static int XNextEvent(IntPtr display, out XEvent xevent);

XEvent is a structure, is declared too.

When I call this function generates the error message: "(process:2484) 
** ERROR **: file marshal.c line 783 (emit_struct_conv): assertion 
failed: (msize > 0 && usize > 0)"
This error occurs in execution time
I think that this error occurs when used the word "out" in function param.


Everaldo Canuto