Skip to content

Instantly share code, notes, and snippets.

@Rajneesh360Logica
Created February 19, 2015 17:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Rajneesh360Logica/ede4cb4462c30bf86a30 to your computer and use it in GitHub Desktop.
Save Rajneesh360Logica/ede4cb4462c30bf86a30 to your computer and use it in GitHub Desktop.
Foundation.MonoTouchException: Objective-C exception thrown. Name: NSRangeException Reason: Cannot remove an observer <__XamarinObjectObserver 0x79805b00> for the key path "Bounds" from <__XamarinObjectObserver 0x79805b00> because it is not registered as an observer.
at ObjCRuntime.Runtime.ThrowNSException (IntPtr ns_exception) [0x00000] in /Developer/MonoTouch/Source/maccore/src/ObjCRuntime/Runtime.cs:156
at ObjCRuntime.Runtime.throw_ns_exception (IntPtr exc) [0x00000] in /Developer/MonoTouch/Source/maccore/runtime/Delegates.generated.cs:100
at at (wrapper native-to-managed) ObjCRuntime.Runtime:throw_ns_exception (intptr)
at at (wrapper managed-to-native) ObjCRuntime.Messaging:void_objc_msgSend_IntPtr_IntPtr_IntPtr (intptr,intptr,intptr,intptr,intptr)
at Foundation.NSObject.RemoveObserver (Foundation.NSObject observer, Foundation.NSString keyPath, IntPtr context) [0x00033] in /Developer/MonoTouch/Source/monotouch/src/build/native/Foundation/NSObject.g.cs:440
at Foundation.NSObject+Observer.Dispose (Boolean disposing) [0x00006] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:833
at Foundation.NSObject.Dispose () [0x00000] in /Developer/MonoTouch/Source/maccore/src/Foundation/NSObject2.cs:131
at AddObserverTest.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00054] in /Users/MM/Downloads/AddObserverTest/AppDelegate.cs:31
at at (wrapper managed-to-native) UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, IntPtr principal, IntPtr delegate) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00038] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46
at AddObserverTest.Application.Main (System.String[] args) [0x00008] in /Users/MM/Downloads/AddObserverTest/Main.cs:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment