[Mono-bugs] [Bug 535462] New: base.WillTerminate() causes MonoTouch.Foundation.ModelNotImplemented

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Aug 29 22:10:40 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=535462


           Summary: base.WillTerminate() causes
                    MonoTouch.Foundation.ModelNotImplemented
    Classification: Mono
           Product: MonoTouch
           Version: SVN
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Critical
          Priority: P5 - None
         Component: Runtime
        AssignedTo: gnorton at novell.com
        ReportedBy: chris at foundation42.org
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.2)
Gecko/20090729 Firefox/3.5.2 (.NET CLR 3.5.30729)

If you override WillTerminate in your AppDelegate class and call the base class
method you will receive a MonoTouch.Foundation.ModelNotImplemented exception.

I have attached the call stack below.

I've marked this bug critical because the exception can have bad effects on
user defined shutdown logic.

Reproducible: Always

Steps to Reproduce:

1. Create a vanilla MonoTouch iPhone application
2. Override WillTerminate() in your AppDelegate so that it looks like this

    public override void WillTerminate (UIApplication application)
    {
        base.WillTerminate (application);
    }

3. Run the application
4. Exit the application
5. Observe the console output
Actual Results:  
Exception is thrown on application exit

Expected Results:  
No exception should be thrown

Here is the stack trace / exception information

Unhandled Exception: MonoTouch.Foundation.ModelNotImplementedException:
Exception of type 'MonoTouch.Foundation.ModelNotImplementedException' was
thrown.
  at MonoTouch.UIKit.UIApplicationDelegate.WillTerminate
(MonoTouch.UIKit.UIApplication application) [0x00000] 
  at WillTerminateBug.AppDelegate.WillTerminate (MonoTouch.UIKit.UIApplication
application) [0x00000] 
  at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication:UIApplicationMain (int,string[],intptr,intptr)
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String
principalClassName, System.String delegateClassName) [0x00000] 
  at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] 
  at WillTerminateBug.Application.Main (System.String[] args) [0x00000]

-- 
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list