[Mono-bugs] [Bug 363372] New: Strange behavior with function pointers and delegates with the embedding API

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Feb 20 13:37:49 EST 2008


https://bugzilla.novell.com/show_bug.cgi?id=363372


           Summary: Strange behavior with function pointers and delegates
                    with the embedding API
           Product: Mono: Runtime
           Version: 1.2.6
          Platform: i386
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: JIT
        AssignedTo: lupus at novell.com
        ReportedBy: cody at lodrige.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Development


Created an attachment (id=196060)
 --> (https://bugzilla.novell.com/attachment.cgi?id=196060)
Test case

When I use Marshal.GetDelegateForFunctionPointer() with a function pointer I
passed via the embedding API, I get a NullReferenceException thrown. But, when
I manually use mono_ftnptr_to_delegate() without the internal call, it works
fine. 

I whipped together a very simple test case. I have class this afternoon, and
not much time, so please feel free to yell at me regarding code quality. :-P

Hope we figure this out..


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list