ios - View Controller being sent a message even though it has been deallocated -


I'm not sure something has changed in the iPhone SDK 3.0 but I'm getting a weird error. I have a visual controller hierarchy where I switch between view controllers based on the transfer orientation. I can tell, error also occurs when I interface Sending rotate the view controller that was distributed IAutorotateToInterfaceOrientation message I is backtrace for the error:

 < Code> # 0 0x0ldc43a7 in 2 0x002e6733 in __forwarding_prep_0___ 0x01da06c2 # ___forwarding___ # 1 in - [UIWindow _shouldAutorotateToInterfaceOrientation:] # 3 in 0x002e6562 - _updateToInterfaceOrientation [UIWindow: Length: force] # 4 0x002e6515 - [UIWindow _updateInterfaceOrientationFromDeviceOrientation] _CFXNotificationPostNotification # 5 # 0x0004d63a in _nsnote_callback # 6 0x01d8f005 in 0x0004aef0 - [NSNotificationCente r postNotificationName: Object: userInfo:] at # 8 0x0045b454 - [UIDevice setOrientation: the # 9 0x002d6890] - [UIApplication handleEvent: withNewEvent:] # 10 in 0x002d16d3 - [UIApplication sendEvent:] # 11 0x002d80b5 _UIApplicationHandleEvent # 12 0x024c2ef1 PurpleEventCallback # 13 in the 0x01d9bb80 CFRunLoopRunSpecific # 14 CFRunLoopRunInMode # 15 GSEventRunModal # 16 GSEventRun # 0x024c1872 0x024c17ad 0x01d9ac48 main main 17 0x002d9003 UIApplicationMain # 18 0x00002d50. M: 14  

Getting the error is printed to debug console with NSZombieEnabled:

  2009-10-18 20: 28: 34.404 restaurants [12428: 207] *** [[ToolbarController respondsToSelector:]: Message sent for deallocated example 0x3b2b2a0 (GDB) Continue Current language: Auto; Currently Objective-C 2009-10-18 20: 31: 43.496 Restaurants [12428: 207] *** NSInvocation: Warning: Object Class does not apply to 0x3b2b2a0 '_NSZombie_BeltToolbarController' methodSignatureForSelector: - trouble ahead 2009-10-18 20: 31: 43.496 Restaurants [12428: 207] *** NSInvocation: Warning: does not apply to the class object 0x3b2b2a0 doesNotRecognizeSelector of '_NSZombie_BeltToolbarController': - Abort  

I Can not understand why the system is trying to deliver messages to this controller, even if it is canceled Gone and there is a way to tell the system that the controller no longer exists.

[UPDATE]: I have to point to load a sample that is put to bug copy project:

app and then some time simulator Portrait Landscape and This should happen. I have tried to do the same piece of code on a physical phone and it behaves exactly the same way, so this is not a simulator related problem.

[Update]: I have used one of my support requests with the Apple's technical team to see if I can get help in reaching this. Post a solution - if they have one - here's Thanks for the help so far.

Obviously, the controller is still registered for notification in question. Send -removeObserver: In the information center itself, the self-destructive system


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -