nicloay
November 20, 2014, 7:57pm
1
Hello, this error occures only on WP build, in editor everything is ok.
Here is a log
A first chance exception of type ‘System.Runtime.InteropServices.SEHException’ occurred in UnityEngine.DLL
The thread 0xf9c has exited with code 259 (0x103).
A first chance exception of type ‘System.Reflection.TargetInvocationException’ occurred in mscorlib.ni.dll
Exception: Exception has been thrown by the target of an invocation.
Type: System.Reflection.TargetInvocationException
Module: mscorlib
InnerException: External component has thrown an exception.
AdditionalInfo:
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)
at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[ ] args)
at System.Delegate.DynamicInvoke(Object[ ] args)
at NguiOnClickBinding.OnClick()
at NguiOnClickBinding.$Invoke0(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: C:/BuildAgent/work/d63dfc6385190b60/Runtime/Scripting/WinRTUtility.cpp Line: 88)
TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)
at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[ ] args)
at System.Delegate.DynamicInvoke(Object[ ] args)
at NguiOnClickBinding.OnClick()
at NguiOnClickBinding.$Invoke0(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: TODO Line: 0)
TargetInvocationException: Exception has been thrown by the target of an invocation.
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[ ] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[ ] parameters, Object[ ] arguments)
at System.Reflection.RuntimeMethodInfo.UnsafeInvoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[ ] parameters, CultureInfo culture)
at System.Delegate.DynamicInvokeImpl(Object[ ] args)
at System.Delegate.DynamicInvoke(Object[ ] args)
at NguiOnClickBinding.OnClick()
at NguiOnClickBinding.$Invoke0(Int64 instance, Int64* args)
at UnityEngine.Internal.$MethodUtility.InvokeMethod(Int64 instance, Int64* args, IntPtr method)
(Filename: TODO Line: 0)
This happens in nData package.
Unity version is 4.5.5f5
Hi,
a bug report with a repro attached would be nice.
nicloay
November 22, 2014, 9:44am
3
Looks like the problem in the nData package.
I’ve change DynamicInvoke to Invoke at some part of code where nData creator fire the delegate,
and then found that GameObject has been destroy on scene change, but attached script was not. maybe because of unprescribed events. And then Script handled fired events, and tried to find the gameObject which was destroyed.