[Mono-dev] PInvoke Problem on Ubuntu

erasmus777 el_gerbo2 at yahoo.com
Thu Mar 17 20:13:56 EDT 2011

I'm trying to test Pinvoke on Ubuntu, but it looks like other people are also
having problems with it on the latest Mono build.

Here's my IPy code:

import clr
from pinvoketest import PinvokeTest


My C# Wrapper:

namespace PinvokeTest {
    using System;
    using System.Runtime.InteropServices;

    public static class Invoke
          [DllImport("libpinvoke.so", SetLastError=true)]
          static extern void pinvoke_this(char input);

	    public static void WriteToFile(char arg)

Calling the native assembly works fine with ctypes in CPython, so the
problem is either in my .NET code or Mono.   Is there something wrong with
my approach or is this an issue with Mono?


View this message in context: http://mono.1490590.n4.nabble.com/PInvoke-Problem-on-Ubuntu-tp3385915p3385915.html
Sent from the Mono - Dev mailing list archive at Nabble.com.

More information about the Mono-devel-list mailing list