Hi,
This startles me.
Working on a new app and reusing proven startup code that is used by
apps in the appstore.
App.cs has a
public static PipoController Controller field;
PipoController is instantiated (it's the root controller) and assigns its
instance to the static field:
App.Controller = this;
And this is the exception I get:
Invalid type PipoSpace.PipoController for instance field
PipoSpace.App:Controller
2012-12-29 21:25:58.148 Pipo[92867:c07] Could not load 'Pipo' for
registration: System.TypeLoadException: Could not load type
'PipoSpace.PipoController' from assembly 'Pipo, Version=0.0.0.0,
Culture=neutral, PublicKeyToken=null'.
at (wrapper managed-to-native) System.MonoType:GetPropertiesByName
(System.MonoType,string,System.Reflection.BindingFlags,bool,System.Type)
at System.MonoType.GetProperties (BindingFlags bindingAttr)
[0x00000] in
/Developer/MonoTouch/Source/mono/mcs/class/corlib/System/MonoType.cs:299
at MonoTouch.ObjCRuntime.Class.Register (System.Type type,
System.String name, Boolean is_wrapper) [0x001b2] in
/Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Class.cs:264
at MonoTouch.ObjCRuntime.Class.Register (System.Type type) [0x0004f]
in /Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Class.cs:207
at MonoTouch.ObjCRuntime.Runtime.RegisterAssembly
(System.Reflection.Assembly a) [0x0009f] in
/Developer/MonoTouch/Source/monotouch/src/ObjCRuntime/Runtime.cs:96
2012-12-29 21:25:58.151 Pipo[92867:c07] This could be due to an
outdated assembly kept by the simulator, location:
/Users/guivho/Library/Application Support/iPhone
Simulator/6.0/Applications/3912F44F-B297-4922-8F79-CA6BD553FF72/Pipo.app/Pipo.exe
Unhandled Exception:
0 Pipo 0x000e6112
mono_handle_exception_internal_first_pass + 3058
1 Pipo 0x000e77f2
mono_handle_exception_internal + 1602
2 Pipo 0x000e833f mono_handle_exception + 47
3 Pipo 0x0012b2b2
mono_x86_throw_exception + 306
4 ??? 0x0b5d8f8f 0x0 + 190680975
5 Pipo 0x001c324e mono_runtime_invoke + 126
6 Pipo 0x00265c08 monotouch_trampoline + 3688
7 UIKit 0x0138c7b7 -[UIApplication
_handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 266
8 UIKit 0x0138cda7 -[UIApplication
_callInitializationDelegatesForURL:payload:suspended:] + 1248
9 UIKit 0x0138dfab -[UIApplication
_runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:]
+ 805
10 UIKit 0x0139f315 -[UIApplication
handleEvent:withNewEvent:] + 1022
11 UIKit 0x013a024b -[UIApplication
sendEvent:] + 85
12 UIKit 0x01391cf8
_UIApplicationHandleEvent + 9874
13 GraphicsServices 0x04bcddf9 _PurpleEventCallback + 339
14 GraphicsServices 0x04bcdad0 PurpleEventCallback + 46
15 CoreFoundation 0x0412abf5
__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
16 CoreFoundation 0x0412a962 __CFRunLoopDoSource1 + 146
17 CoreFoundation 0x0415bbb6 __CFRunLoopRun + 2118
18 CoreFoundation 0x0415af44 CFRunLoopRunSpecific + 276
19 CoreFoundation 0x0415ae1b CFRunLoopRunInMode + 123
20 UIKit 0x0138d7da -[UIApplication _run] + 774
21 UIKit 0x0138f65c UIApplicationMain + 1211
at (wrapper managed-to-native)
MonoTouch.UIKit.UIApplication.UIApplicationMain
(int,string[],intptr,intptr) <IL 0x00056, 0x000a4>
at MonoTouch.UIKit.UIApplication.Main (string[],string,string)
[0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at PipoSpace.Application.Main (string[]) [0x00000] in
/Users/guivho/Mono/Pipo/Pipo/Main.cs:22
at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object
(object,intptr,intptr,intptr) <IL 0x00049, 0x00077>
26 Pipo 0x000617b2 mono_jit_runtime_invoke + 722
27 Pipo 0x001c324e mono_runtime_invoke + 126
28 Pipo 0x001c73d4 mono_runtime_exec_main + 420
29 Pipo 0x001cc7c5 mono_runtime_run_main + 725
30 Pipo 0x000bea05 mono_jit_exec + 149
31 Pipo 0x0025af12 main + 1986
32 Pipo 0x0005a6e1 start + 53
33 ??? 0x00000004 0x0 + 4
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: A type
load exception has occurred.
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)
[0x0004c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:38
at PipoSpace.Application.Main (System.String[] args) [0x00000] in
/Users/guivho/Mono/Pipo/Pipo/Main.cs:22
I have reset my iPhone Simulator, but that did not help.
Any ideas?
TIA,
Guido
--
buzzword, n:
The fly in the ointment of computer literacy.
http://vanhoecke.org ... and go2 places!
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch