Following on from this morning's upgrade to MT 4.0.7, I am now finding mtouch
is crashing on code which worked fine yesterday, when compiling in Release
mode only.

Error 1: mtouch failed with the following message:

Unhandled Exception: System.NullReferenceException: Object reference not set
to an instance of an object
  at MonoTouch.Registrar.TypeSystemDescriptor.MethodMatch
(Mono.Cecil.MethodDefinition candidate, Mono.Cecil.MethodDefinition method)
[0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.PropertyMatch
(Mono.Cecil.PropertyDefinition candidate, Mono.Cecil.PropertyDefinition
property) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.TryMatchProperty
(Mono.Cecil.TypeDefinition type, Mono.Cecil.PropertyDefinition property)
[0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.GetBasePropertyInTypeHierarchy
(Mono.Cecil.PropertyDefinition property) [0x00000] in <filename unknown>:0
  at
MonoTouch.Registrar.TypeSystemDescriptor+<CollectCandidateProperties>c__Iterator0.MoveNext
() [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessMethods
(Mono.Cecil.TypeDefinition type, MonoTouch.Registrar.Class class) [0x00000]
in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessType
(Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessAssembly
(Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.Process (IEnumerable`1
assemblies) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1
assemblies) [0x00000] in <filename unknown>:0
  at Registrar.Generate (System.Collections.Generic.List`1 list,
MonoTouch.Tuner.MonoTouchResolver resolver) [0x00000] in <filename
unknown>:0
  at MTouch.RunRegistrar (System.Collections.Generic.List`1 assemblies,
System.String assemblies_path, System.String output_dir, System.String&
output_file) [0x00000] in <filename unknown>:0
  at MTouch.CompileToNative (System.String user_gcc_flags,
System.Collections.Generic.List`1 assemblies) [0x00000] in <filename
unknown>:0
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.NullReferenceException: Object
reference not set to an instance of an object
  at MonoTouch.Registrar.TypeSystemDescriptor.MethodMatch
(Mono.Cecil.MethodDefinition candidate, Mono.Cecil.MethodDefinition method)
[0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.PropertyMatch
(Mono.Cecil.PropertyDefinition candidate, Mono.Cecil.PropertyDefinition
property) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.TryMatchProperty
(Mono.Cecil.TypeDefinition type, Mono.Cecil.PropertyDefinition property)
[0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.GetBasePropertyInTypeHierarchy
(Mono.Cecil.PropertyDefinition property) [0x00000] in <filename unknown>:0
  at
MonoTouch.Registrar.TypeSystemDescriptor+<CollectCandidateProperties>c__Iterator0.MoveNext
() [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessMethods
(Mono.Cecil.TypeDefinition type, MonoTouch.Registrar.Class class) [0x00000]
in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessType
(Mono.Cecil.TypeDefinition type) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.ProcessAssembly
(Mono.Cecil.AssemblyDefinition assembly) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.Process (IEnumerable`1
assemblies) [0x00000] in <filename unknown>:0
  at MonoTouch.Registrar.TypeSystemDescriptor.Describe (IEnumerable`1
assemblies) [0x00000] in <filename unknown>:0
  at Registrar.Generate (System.Collections.Generic.List`1 list,
MonoTouch.Tuner.MonoTouchResolver resolver) [0x00000] in <filename
unknown>:0
  at MTouch.RunRegistrar (System.Collections.Generic.List`1 assemblies,
System.String assemblies_path, System.String output_dir, System.String&
output_file) [0x00000] in <filename unknown>:0
  at MTouch.CompileToNative (System.String user_gcc_flags,
System.Collections.Generic.List`1 assemblies) [0x00000] in <filename
unknown>:0
  at MTouch.Main (System.String[] args) [0x00000] in <filename unknown>:0
 (1) (MyAppNamespace.MyProjectName)

Currently can't upload code to my testing device.

Weirdly someone literally just posted this exact issue on StackOverflow but
then immediately deleted their question. Here's the Google cache link.
http://tinyurl.com/6ysmssq

Thanks in advance...
Tom

--
View this message in context: 
http://monotouch.2284126.n4.nabble.com/mtouch-crashing-under-MonoTouch-4-0-7-tp3809979p3809979.html
Sent from the MonoTouch mailing list archive at Nabble.com.
_______________________________________________
MonoTouch mailing list
[email protected]
http://lists.ximian.com/mailman/listinfo/monotouch

Reply via email to