[Mono-bugs] [Bug 79312][Nor] Changed - returning a struct by value giving unexpected results

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Sep 7 05:20:36 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 robertj at gmx.net.

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

--- shadow/79312	2006-09-06 22:06:17.000000000 -0400
+++ shadow/79312.tmp.3110	2006-09-07 05:20:36.000000000 -0400
@@ -1,15 +1,15 @@
 Bug#: 79312
 Product: Mono: Runtime
 Version: 1.1
-OS: 
+OS: unknown
 OS Details: Mac OSX 10.4.7, G4
 Status: NEW   
 Resolution: 
-Severity: 
-Priority: Major
+Severity: Unknown
+Priority: Normal
 Component: interop
 AssignedTo: mono-bugs at ximian.com                            
 ReportedBy: james.eberle at comcast.net               
 QAContact: mono-bugs at ximian.com
 TargetMilestone: ---
 URL: 
@@ -57,6 +57,26 @@
 
 Expected Results:
 - The two values should match
 
 How often does this happen? 
 - Always
+
+------- Additional Comments From robertj at gmx.net  2006-09-07 05:20 -------
+Both p/invoke declarations are not correct.
+
+According to:
+
+http://developer.apple.com/documentation/Carbon/Reference/Carbon_Event_Manager_Ref/Reference/reference.html#//apple_ref/c/func/GetCurrentEventLoop
+http://developer.apple.com/documentation/Carbon/Reference/Carbon_Event_Manager_Ref/Reference/reference.html#//apple_ref/doc/c_ref/EventLoopRef
+
+GetCurrentEventLoop () returns a pointer to an opaque struct.
+
+In this case, the correct p/invoke declaration is:
+
+  [DllImport(LIB)]
+  public static extern IntPtr GetCurrentEventLoop();
+
+
+Priority changed (see
+http://bugzilla.ximian.com/bug_status.html#priority).
+


More information about the mono-bugs mailing list