[Mono-dev] UnmanagedFunctionPointer/Callingconvention Bug

David_Hudson at capgroup.com David_Hudson at capgroup.com
Tue Aug 1 10:01:22 EDT 2006


Sorry, it has already been fixed (bug #78738). I have updated Bugzilla.

Dave

> ------------------------------
>
> Message: 4
> Date: Mon, 31 Jul 2006 14:43:17 -0700
> From: David_Hudson at capgroup.com
> Subject: [Mono-dev] UnmanagedFunctionPointer/Callingconvention Bug
> To: mono-devel-list at lists.ximian.com
> Message-ID:
>
<OF7D42887E.92EB3EEF-ON882571BC.007660A4-882571BC.00775294 at capgroup.com>
>
> Content-Type: text/plain; charset=US-ASCII
>
> Hi,
>
> I found a bug using Mono 1.13.8 on Windows XP using gmcs.
>
> I have posted this as Bug 78982 in Bugzilla.
>
> This code will not compile:
>
> ----------------------------------------
> using System;
> using System.Runtime.InteropServices;
>
> namespace Test.Bug
> {
>     public sealed class Test
>     {
>         private const CallingConvention CALLING_CONVENTION =
> CallingConvention.Cdecl;
>
>         [UnmanagedFunctionPointer(CALLING_CONVENTION)]
>         public delegate int CallingConventionBug(IntPtr ptr);
>     }
> }
> ----------------------------------------
>
> You get this set of compilation errors.
> ------------------------------
> [csc] Unhandled Exception: System.NullReferenceException: Object
reference
> not set to an instance of an object
>                   [csc] in <0x00010>
> Mono.CSharp.TypeManager:IsPrivateAccessible (System.Type type,
System.Type
> parent)
>                   [csc] in <0x002d0>
Mono.CSharp.TypeManager+Closure:Filter
[rest of meessage deleted]




More information about the Mono-devel-list mailing list