There's a pull to refresh implementation here:
https://github.com/martinbowling/MTTweetieTableViewPullRefresh
On Sep 20, 2011, at 10:48 AM, stevek wrote:
> Hello,
>
> I am trying to get a version of "Pull-to-refresh" on a UITableView with some
> customised UITableCells working.
>
> Works OK on the Sim but trying it on the real phone throws the following
> exception:
>
> Unhandled Exception:
> MonoTouch.Foundation.You_Should_Not_Call_base_In_This_Method: Exception of
> type 'MonoTouch.Foundation.You_Should_Not_Call_base_In_This_Method' was
> thrown.
>
> I have looked at my code and don't seem to be any instances of me forgetting
> to comment out the throws created when you override some methods.
>
> Has anyone got any ideas on how to go about fixing this or point me to a
> good "Advanced debugging for MT" guide?
>
> Many Thanks
> SK
> ---------------
>
> The code for the DraggingStarted method is as follows:
>
> [Export("scrollViewWillBeginDragging:")]
> public void DraggingStarted (UIScrollView scrollView)
> {
> Util.Debug("DraggingStarted()");
> _checkForRefresh = true;
> }
>
>
>
> And the error is:
>
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Unhandled Exception:
> MonoTouch.Foundation.You_Should_Not_Call_base_In_This_Method: Exception of
> type 'MonoTouch.Foundation.You_Should_Not_Call_base_In_This_Method' was
> thrown.
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: at MonoTouch.UIKit.UITableViewSource.DraggingStarted
> (MonoTouch.UIKit.UIScrollView scrollView) [0x00000] in <filename unknown>:0
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: at MonoTouch.UIKit.UIApplication.Main (System.String[] args,
> System.String principalClassName, System.String delegateClassName) [0x00000]
> in <filename unknown>:0
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: at TableViewPullRefresh.Application.Main (System.String[] args)
> [0x00000] in
> /Users/solvdltd/Projects/TestTestUpdateTable/TableViewPullRefresh/Main.cs:20
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: [ERROR] FATAL UNHANDLED EXCEPTION:
> MonoTouch.Foundation.You_Should_Not_Call_base_In_This_Method: Exception of
> type 'MonoTouch.Foundation.You_Should_Not_Call_base_In_This_Method' was
> thrown.
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: at MonoTouch.UIKit.UITableViewSource.DraggingStarted
> (MonoTouch.UIKit.UIScrollView scrollView) [0x00000] in <filename unknown>:0
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: at MonoTouch.UIKit.UIApplication.Main (System.String[] args,
> System.String principalClassName, System.String delegateClassName) [0x00000]
> in <filename unknown>:0
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: at TableViewPullRefresh.Application.Main (System.String[] args)
> [0x00000] in
> /Users/solvdltd/Projects/TestTestUpdateTable/TableViewPullRefresh/Main.cs:20
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Error connecting stdout and stderr (169.254.25.195:10001)
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Terminating runtime due to unhandled exception
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Stacktrace:
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Native stacktrace:
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 0 TableViewPullRefresh 0x00597d5c
> mono_handle_native_sigsegv + 412
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 1 TableViewPullRefresh 0x005bef48
> sigabrt_signal_handler + 148
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 2 libSystem.B.dylib 0x31109ddf _sigtramp +
> 42
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 3 libSystem.B.dylib 0x3110b2cb kill + 10
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 4 libSystem.B.dylib 0x3110b2bd raise + 16
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 5 libSystem.B.dylib 0x3111fd79 abort + 56
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 6 TableViewPullRefresh 0x006d3f3c monoeg_g_logv
> + 248
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 7 TableViewPullRefresh 0x006d3fd0
> monoeg_assertion_message + 44
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 8 TableViewPullRefresh 0x005797fc
> mono_thread_abort + 224
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 9 TableViewPullRefresh 0x005971a4
> mono_handle_exception_internal + 2436
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 10 TableViewPullRefresh 0x00597a8c
> mono_handle_exception + 108
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 11 TableViewPullRefresh 0x005bcf5c
> mono_arm_throw_exception + 324
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 12 TableViewPullRefresh 0x00519edc
> throw_exception + 48
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 13 TableViewPullRefresh 0x004e6818
> wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
> + 200
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 14 TableViewPullRefresh 0x0057d8a0
> mono_jit_runtime_invoke + 2800
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 15 TableViewPullRefresh 0x0066c57c
> mono_runtime_invoke + 140
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 16 TableViewPullRefresh 0x006f21b4
> monotouch_trampoline + 2840
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 17 UIKit 0x314afb43
> -[UIScrollView(UIScrollViewInternal) _scrollViewWillBeginDragging] + 162
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 18 UIKit 0x314b77cd
> -[UIScrollView
> _updatePanWithStartDelta:gesture:ignoringDirectionalScroll:] + 236
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 19 UIKit 0x314b16bb
> -[UIScrollView
> handlePan:] + 278
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 20 CoreFoundation 0x3042cbbf
> -[NSObject(NSObject) performSelector:withObject:] + 22
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 21 UIKit 0x314323d3
> -[UIGestureRecognizer _updateGestureWithEvent:] + 574
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 22 UIKit 0x3143218b
> -[UIGestureRecognizer _delayedUpdateGesture] + 22
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 23 UIKit 0x313997b1
> _UIGestureRecognizerUpdateObserver + 436
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 24 UIKit 0x313b11df
> _UIGestureRecognizerUpdateGesturesFromSendEvent + 22
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 25 UIKit 0x313b0fe1 -[UIWindow
> _sendGesturesForEvent:] + 712
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 26 UIKit 0x313b0c0b -[UIWindow
> sendEvent:] + 66
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 27 UIKit 0x3139bfc7
> -[UIApplication sendEvent:] + 298
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 28 UIKit 0x3139b907
> _UIApplicationHandleEvent + 5090
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 29 GraphicsServices 0x31eecf03
> PurpleEventCallback + 666
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 30 CoreFoundation 0x304236ff
> __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 26
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 31 CoreFoundation 0x304236c3
> __CFRunLoopDoSource1 + 166
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 32 CoreFoundation 0x30415f7d
> __CFRunLoopRun
> + 520
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 33 CoreFoundation 0x30415c87
> CFRunLoopRunSpecific + 230
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 34 CoreFoundation 0x30415b8f
> CFRunLoopRunInMode + 58
> Tue Sep 20 15:32:19 unknown sandboxd[482] <Notice>: TableViewPullRef(479)
> deny process-fork
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 35 GraphicsServices 0x31eec4ab
> GSEventRunModal + 114
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 36 GraphicsServices 0x31eec557 GSEventRun +
> 62
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 37 UIKit 0x313cf329
> -[UIApplication _run] + 412
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 38 UIKit 0x313cce93
> UIApplicationMain + 670
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 39 TableViewPullRefresh 0x00179ef0
> wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr
> + 240
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 40 TableViewPullRefresh 0x000a9a60
> TableViewPullRefresh_Application_Main_string__ + 152
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 41 TableViewPullRefresh 0x004e6818
> wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr
> + 200
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 42 TableViewPullRefresh 0x0057d8a0
> mono_jit_runtime_invoke + 2800
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 43 TableViewPullRefresh 0x0066c57c
> mono_runtime_invoke + 140
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 44 TableViewPullRefresh 0x0066f52c
> mono_runtime_exec_main + 784
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 45 TableViewPullRefresh 0x0066e590
> mono_runtime_run_main + 1048
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 46 TableViewPullRefresh 0x00585050 mono_jit_exec
> + 216
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 47 TableViewPullRefresh 0x00577e68 main + 3544
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: 48 TableViewPullRefresh 0x00002684 start + 52
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Debug info from gdb:
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: =================================================================
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: Got a SIGABRT while executing native code. This usually indicates
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: a fatal error in the mono runtime or one of the native libraries
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: used by your application.
> Tue Sep 20 15:32:19 unknown UIKitApplication:uk.co.solvd.test[0xf623][479]
> <Notice>: =================================================================
> Tue Sep 20 15:32:19 unknown ReportCrash[481] <Notice>: Formulating crash
> report for process TableViewPullRefresh[479]
> Tue Sep 20 15:32:19 unknown com.apple.launchd[1] <Warning>:
> (UIKitApplication:uk.co.solvd.test[0xf623]) Job appears to have crashed:
> Abort trap
> Tue Sep 20 15:32:19 unknown SpringBoard[28] <Warning>: Application
> 'TableViewPullRefresh' exited abnormally with signal 6: Abort trap
> Tue Sep 20 15:32:20 unknown ReportCrash[481] <Error>: Saved crashreport to
> /var/mobile/Library/Logs/CrashReporter/TableViewPullRefresh_2011-09-20-153219_steveks-iPod-Touch.plist
> using uid: 0 gid: 0, synthetic_euid: 501 egid: 0
>
> <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
>
>
> --
> View this message in context:
> http://monotouch.2284126.n4.nabble.com/You-Should-Not-Call-base-In-This-Method-was-thrown-tp3827063p3827063.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