[Mono-bugs] [Bug 22811] Changed - NullReference in execution of FilterName_impl

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
9 Apr 2002 15:20:50 -0000


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 lupus@ximian.com.

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

--- shadow/22811	Tue Apr  9 10:50:07 2002
+++ shadow/22811.tmp.9184	Tue Apr  9 11:20:50 2002
@@ -11,13 +11,13 @@
 AssignedTo: mono-bugs@ximian.com                            
 ReportedBy: mkestner@speakeasy.net               
 QAContact: mono-bugs@ximian.com
 TargetMilestone: ---
 URL: 
 Cc: 
-Summary: segfault in execution of FilterName_impl on mint mcs
+Summary: NullReference in execution of FilterName_impl
 
 mono, mcs, gtk-sharp from cvs 18:00 3/29/02
 
 make linux target of gtk-sharp fails in the glib dir.
 
 Both mono and mint invocations of mcs fail.
@@ -150,6 +150,20 @@
 #18: 0x00001 call       in Mono.CSharp.Driver::Main ([0x813ff10] )
 
 
 ------- Additional Comments From miguel@ximian.com  2002-04-09 10:50 -------
 could someone provide a small test case for this bug, that crashes MCS
 on Windows, and Windows only?
+
+------- Additional Comments From lupus@ximian.com  2002-04-09 11:20 -------
+The bug is really weird and needs:
+a) an access to a property as argument to a P/Invoke method
+and 
+b) the P/Invoke method needs to have non-positional parameters in the
+attribute.
+In the sample code, just delete the CallingConvetion stuff in the
+dllImport and it works, or delete the use of Raw and it works again.
+It maybe that mcs thinks all the non positional args are properties,
+while they can be fields, too (just a guess).
+
+The bug appears with the ms runtime, too.
+