I was writing my reply, saying that you probably pasted the wrong method signature.
Is there some particular reason that you do not know the type in advance? It would be easier if you could do that because you would then be able to write a precise signature for the P/Invoke method. By the way, is mdArray a field or local variable? On Saturday 03 July 2004 3:26 pm, Tim R�disch wrote: > One Copy&Paste-error. The first DllImport was not byte[] but IntPtr :) > > [...] > > Because it is a "const void*" I used the following DllImport statement > [ DllImport(lib) ] > static extern void multiDimArrayTest( IntPtr elems ); > and this methode call > multiDimArrayTest( GCHandle.Alloc( mdArray, > GCHandleType.Pinned).AddrOfPinnedObject() ); > > [...] _______________________________________________ Mono-list maillist - [EMAIL PROTECTED] http://lists.ximian.com/mailman/listinfo/mono-list
