Author Topic: Windows 8 Phone  (Read 1902 times)

beforethelight

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Windows 8 Phone
« on: June 24, 2014, 05:49:21 PM »
Below is the error I get whenever I click anything using UIEventListener.  This app was build for Android then ported to iOS and NGUI has been flawless!  I have Unity 4.3.1f and NGUI 3.6.5.  Any help would be appreciated! 

A first chance exception of type 'System.MissingMethodException' occurred in Unknown Module.
An exception of type 'System.MissingMethodException' occurred in Unknown Module. but was not handled in user code
Exception: Method not found: 'System.Reflection.MethodInfo System.Type.GetMethod(System.String, System.Reflection.BindingFlags)'.
Type: System.MissingMethodException
Module: Assembly-CSharp-firstpass
InnerException: <No Data>
AdditionalInfo:Invoking UIButton::OnClick method with argument count: 0
   at EventDelegate.Cache()
   at EventDelegate.Execute()
   at EventDelegate.Execute(List`1 list)
   at UIButton.OnClick()
   at lambda_method(Closure , Object , Object[] , Int32 )
   at WinRTBridge.MethodTools.InvokeMethod(Object instance, Int32 methodIndex, Object[] args)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Windows 8 Phone
« Reply #1 on: June 25, 2014, 06:24:30 AM »
Do you have stripping enabled? Type.GetMethod is a basic C#/Mono function.

http://msdn.microsoft.com/en-us/library/05eey4y9(v=vs.110).aspx

Edit: Just realized your topic says WP8, not iOS like the description... Yeah, WP8 has "issues". Some functions that should be there according to Microsoft's documentation are actually not. However that section is in a try/catch block, so why is it causing an issue for you? It should simply fall through and go to the WP8 section right below it.

beforethelight

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Windows 8 Phone
« Reply #2 on: June 25, 2014, 03:12:35 PM »
Updated to Unity 4.5.1f3 and seems to have fixed all the NGUI issues I was having.  Thanks