Hi All,
This is a real doosey of a problem, been bugging me and now holding me back
for a week.
The app loads and runs fine - well it did until I added a UIPickerView. I've
done this before and its been fine, so I'm not sure what different with this
one, but I get two errors when I change its value.
The first is a popup exception:
Objective-C exception thrown. Name: NSInvalidArgumentException Reason:
-[__NSCFArray pickerView:titleForRow:forComponent:]: unrecognized selector
sent to instance 0xf800830
the second is in the application output:
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/monotouch.dll
[External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Core.dll
[External]
Loaded assembly:
/Users/scott/Projects/iLetters/iEstateAgent/bin/iPhoneSimulator/Debug/iEstateAgent.exe
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.Linq.dll
[External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.Xml.dll
[External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/Mono.Security.dll
[External]
Loaded assembly: /Developer/MonoTouch/usr/lib/mono/2.1/System.dll [External]
Stacktrace:
at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr)
<IL 0x0009f, 0xffffffff>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string) [0x00038]
in /Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:26
at MonoTouch.UIKit.UIApplication.Main (string[]) [0x00000] in
/Developer/MonoTouch/Source/monotouch/monotouch/UIKit/UIApplication.cs:31
at iEstateAgent.Application.Main (string[]) [0x00000] in
/Users/scott/Projects/iLetters/iEstateAgent/Main.cs:14
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00050, 0xffffffff>
Native stacktrace:
0 iEstateAgent 0x000d0db8
mono_handle_native_sigsegv + 343
1 iEstateAgent 0x0000f6ac
mono_sigsegv_signal_handler + 322
2 libSystem.B.dylib 0x93bf805b _sigtramp + 43
3 ??? 0xffffffff 0x0 + 4294967295
4 UIKit 0x019b1c48 -[UIPickerView
table:cellForRow:column:] + 63
5 UIKit 0x01b5bc56 -[UITable
createPreparedCellForRow:column:] + 1489
6 UIKit 0x01b64a52 -[UITable
_updateVisibleCellsNow] + 1881
7 UIKit 0x01b5f746 -[UITable
layoutSubviews] + 215
8 QuartzCore 0x045860d5 -[CALayer
layoutSublayers] + 177
9 QuartzCore 0x04585e05
CALayerLayoutIfNeeded +
220
10 QuartzCore 0x0458564c
_ZN2CA7Context18commit_transactionEPNS_11TransactionE + 302
11 QuartzCore 0x045852b0
_ZN2CA11Transaction6commitEv + 292
12 QuartzCore 0x0458cf5b
_ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
13 CoreFoundation 0x00d6cd1b
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
14 CoreFoundation 0x00d01987
__CFRunLoopDoObservers +
295
15 CoreFoundation 0x00cca297 CFRunLoopRunSpecific
+
231
16 CoreFoundation 0x00cca1a1 CFRunLoopRunInMode +
97
17 GraphicsServices 0x053bb2c8 GSEventRunModal + 217
18 GraphicsServices 0x053bb38d GSEventRun + 115
19 UIKit 0x019c9b58 UIApplicationMain +
1160
20 ??? 0x0ab07dcb 0x0 + 179338699
21 ??? 0x0ab07b9c 0x0 + 179338140
22 ??? 0x0ab0719c 0x0 + 179335580
23 ??? 0x0ab06ff4 0x0 + 179335156
24 ??? 0x0ab07146 0x0 + 179335494
25 iEstateAgent 0x0000f467
mono_jit_runtime_invoke
+ 1332
26 iEstateAgent 0x001ed229 mono_runtime_invoke +
137
27 iEstateAgent 0x001ef910
mono_runtime_exec_main +
669
28 iEstateAgent 0x001eecfa
mono_runtime_run_main +
843
29 iEstateAgent 0x000a2ff3 mono_jit_exec + 200
30 iEstateAgent 0x002a1651 main + 4060
31 iEstateAgent 0x00002779 _start + 208
32 iEstateAgent 0x000026a8 start + 40
Debug info from gdb:
dyld: could not load inserted library: /Users/scott/Library/Application
Support/iPhone
Simulator/4.0/Applications/0B02CA16-27F8-4DD1-8B41-AD05FEA5C9D1/iEstateAgent.app/monotouch-fixes.dylib
=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================
Any and all help is gratefully received!
Thanks,
Scott
--
View this message in context:
http://monotouch.2284126.n4.nabble.com/Cannot-change-a-PickerView-value-tp3770522p3770522.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch