Hi, We are having a crash on our App that we are able to replicate in the MT Dialog sample project. I've pulled the latest sources from Miguel's GitHub repo and its still present.
Under certain circumstances typing a forward slash (/) in to an EntryElement will cause the app to crash. Other times the cursor will jump to the end of the existing text. Steps to replicate: 1. Run the MT.Dialog Sample App 2. Navigate to "Assorted Cells" ->"Url" 3. Type "Welcome" in to the Url element 4. Position the cursor between the c and o in Welcome. 5. Enter a "/" 6. App Crashes The exception looks like this Unhandled Exception: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSRangeException Reason: *** -[__NSCFString substringToIndex:]: Range or index out of bounds 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) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 at Sample.Application.Main (System.String[] args) [0x00000] in /Users/jamier/Documents/monotouchdialog/Sample/Main.cs:15 [ERROR] FATAL UNHANDLED EXCEPTION: MonoTouch.Foundation.MonoTouchException: Objective-C exception thrown. Name: NSRangeException Reason: *** -[__NSCFString substringToIndex:]: Range or index out of bounds 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) [0x00042] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:29 at Sample.Application.Main (System.String[] args) [0x00000] in /Users/jamier/Documents/monotouchdialog/Sample/Main.cs:15 I can't really tell from that where the problem is. Any ideas? Thanks Jamie -- View this message in context: http://monotouch.2284126.n4.nabble.com/Crash-when-entering-forward-slash-in-MT-Dialog-EntryElement-tp4598495.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
