[Mono-bugs] [Bug 79583][Wis] New - Error when marshalling nested structures from managed to unmanaged space

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Wed Oct 4 14:58:22 EDT 2006


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by dsanders at novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=79583

--- shadow/79583	2006-10-04 14:58:22.000000000 -0400
+++ shadow/79583.tmp.14448	2006-10-04 14:58:22.000000000 -0400
@@ -0,0 +1,57 @@
+Bug#: 79583
+Product: Mono: Runtime
+Version: 1.1
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: interop
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: dsanders at novell.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Error when marshalling nested structures from managed to unmanaged space
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+
+I get the following error when I call a native C function that is
+marshalling a somewhat complex nested structure:
+
+** ERROR **: Invalid IL code at IL005c in (wrapper managed-to-native)
+TestProg.TestStat:Native_initStruct (TestProg.MyStruct): IL_005c: brfalse.s
+IL_ffffffe6
+
+
+
+Steps to reproduce the problem:
+1. Build the C# program and the native library.  To do this just use the
+attached "m" script file.  It will build them both.
+2. Run the test.exe program that is produced: "mono test.exe"
+3. Error will occur.
+
+NOTE: I was running this on a SLED10 system.
+
+Actual Results:
+
+The error I showed above.
+
+Expected Results:
+
+Successful run with no errors.
+
+How often does this happen? 
+
+Every time.
+
+Additional Information:
+
+The structure I am marshalling has three levels of nested structures.  I
+can simplify the structure down to two levels and it will work, but I can
+also remove some of the sub-structures - still having three levels of
+nesting - and it will also work.


More information about the mono-bugs mailing list