[Mono-bugs] [Bug 546399] New: mono_jit_cleanup(domain); - generates an exception

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Oct 13 04:38:33 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=546399


           Summary: mono_jit_cleanup(domain);  - generates an exception
    Classification: Mono
           Product: MonoTouch
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: P5 - None
         Component: Runtime
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ogim at pacbell.net
         QAContact: mono-bugs at lists.ximian.com
                CC: ogim at pacbell.net
          Found By: Customer


Description of Problem:
   I am embedding a C# library in objective C

Steps to reproduce the problem:
1. Create a C# assembly
2. Create a basic ObjC projects that invokes the assembly.
3. The easiest way to integrate the C# assembly is to get XCODE project auto
generated.
4. The xcode project works, but it does not have mono_jit_cleanup(domain); to
do the proper cleanup at the end and memory leaks are detected.
5. Adding  mono_jit_cleanup(domain); is the recommended way for cleanup.

Actual Results:
Unhandled Exception: System.TypeInitializationException: An exception was
thrown by the type initializer for System.Runtime.Remoting.Contexts.Context
---> System.NotSupportedException: Linked away
  at System.Runtime.Remoting.Contexts.Context..cctor () [0x00000] 
  --- End of inner exception stack trace ---
Expected Results:
   No errors. 

How often does this happen? 
 All the time.

Additional Information:
 Any recommendations?

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


More information about the mono-bugs mailing list