[Mono-list] DllImport ... help (gethostname)

Paolo Molaro lupus@ximian.com
Mon, 17 Jun 2002 19:38:41 +0200


On 06/15/02 Stewart Allen wrote:
>  static extern int gethostname([MarshalAs(UnmanagedType.LPArray)] 
> byte[] buf, int len);
> 
> but that fails to compile (mcs under linux) with:
> 
> ** (process:9763): WARNING **: unhandled exception 
> System.NotImplementedException: "The requested feature is not yet 
> implemented"
> in <0x00032> 
> System.Reflection.Emit.UnmanagedMarshal:DefineUnmanagedMarshal 
> (System.Runtime.InteropServices.UnmanagedType)
[...]
> so I guess this either isn't possible with mono in it's current state or 
>  I need to find an alternate method.

I fixed the compilation of the MarshalAs attributes a few days ago.

> any/all suggestions heartily welcomed.

I'm currently working on marshaling, so this issue should be fixed soon.

lupus

-- 
-----------------------------------------------------------------
lupus@debian.org                                     debian/rules
lupus@ximian.com                             Monkeys do it better