Hi,

This looks identical to this:
https://bugzilla.xamarin.com/show_bug.cgi?id=7788

Rolf

On Mon, Oct 15, 2012 at 3:41 AM, yiannis <[email protected]> wrote:

> After upgrading to MonoTouch 6.0.4 I am getting the following exception
> when
> I try to create an instance of a navigation controller in
> FinishedLaunching.
> *The error appears when deploying my app on iPhone running iOS 4.3* . It
> runs fine in iOS 5 and iOS 6.
>
> MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown.
> Name: NSInvalidArgumentException Reason: -[NSConcreteHashTable
> objectAtIndex:]: unrecognized selector sent to instance 0x685550
>   at MonoTouch.Foundation.NSArray.ArrayFromHandle[UIViewController] (IntPtr
> handle) [0x00000] in <filename unknown>:0
>   at MonoTouch.UIKit.UIViewController.get_ChildViewControllers () [0x00008]
> in
> /Developer/MonoTouch/Source/monotouch/src/UIKit/UIViewController.g.cs:1744
>   at MonoTouch.UIKit.UINavigationController.get_ViewControllers ()
> [0x0002e]
> in
>
> /Developer/MonoTouch/Source/monotouch/src/UIKit/UINavigationController.g.cs:325
>   at MonoTouch.UIKit.UINavigationController..ctor
> (MonoTouch.UIKit.UIViewController rootViewController) [0x00049] in
>
> /Developer/MonoTouch/Source/monotouch/src/UIKit/UINavigationController.g.cs:162
>   at test.AppDelegate.FinishedLaunching (MonoTouch.UIKit.UIApplication app,
> MonoTouch.Foundation.NSDictionary options) [0x00020] in
> /Users/yiannis/Projects/test/test/AppDelegate.cs:40
>   at MonoTouch.UIKit.UIApplication.Main (System.String[] args,
> System.String
> principalClassName, System.String delegateClassName) [0x0004c] in
> /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
>   at test.Application.Main (System.String[] args) [0x00000] in
> /Users/yiannis/Projects/test/test/Main.cs:17
>
>
> To reproduce this issue create an empty monotouch project, and add the
> following code to the AppDelegate file:
>
>                 UIViewController viewController;
>                 UINavigationController nav;
>
>                 public override bool FinishedLaunching (UIApplication app,
> NSDictionary
> options)
>                 {
>                         // create a new window instance based on the
> screen size
>                         window = new UIWindow (UIScreen.MainScreen.Bounds);
>
>                         viewController = new UIViewController();
>                         nav = new UINavigationController(viewController);
>                         window.RootViewController = nav;
>
>                         // make the window visible
>                         window.MakeKeyAndVisible ();
>
>                         return true;
>                 }
>
>
> Debug the above project in iOS 4.3 . Hopefully the error should appear and
> the app will crash
>
>
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/NSConcreteHashTable-objectAtIndex-unrecognized-selector-sent-to-instance-0x685550-tp4657500.html
> Sent from the MonoTouch mailing list archive at Nabble.com.
> _______________________________________________
> MonoTouch mailing list
> [email protected]
> http://lists.ximian.com/mailman/listinfo/monotouch
>
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to