[Mono-bugs] [Bug 61911][Wis] New - NSArray.ArrayWithObject crash, NSCFArray

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sat, 24 Jul 2004 13:13:42 -0400 (EDT)


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 mjedgar@nycap.rr.com.

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

--- shadow/61911	2004-07-24 13:13:42.000000000 -0400
+++ shadow/61911.tmp.7708	2004-07-24 13:13:42.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 61911
+Product: Cocoa#
+Version: 0.1
+OS: 
+OS Details: 10.3.4
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Bindings.
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: mjedgar@nycap.rr.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: NSArray.ArrayWithObject crash, NSCFArray
+
+Please fill in this template when reporting a bug, unless you know what you are doing.
+Description of Problem:
+
+Causes crash when casting as NSArray..
+
+Steps to reproduce the problem:
+1. NSArray myArray = (NSArray)NSArray.ArrayWithObject(new NSString("foo"));
+2. Run it
+3. (Code is at bottom)
+
+Actual Results:
+Crashes.
+
+Expected Results:
+It's expected to return an NSArray with one object, "foo"
+
+How often does this happen? 
+Every time you run that code
+
+Additional Information:
+
+using System;
+using Apple.Foundation;
+class Driver
+{
+    static int Main(String[] args) {
+        NSArray myArray = (NSArray)NSArray.ArrayWithObject(new NSString("foo"));
+        return 1;
+    }
+}