Author Topic: new fantastic exception! System.Runtime.InteropServices.SEHException  (Read 4450 times)

Lotti

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 47
    • View Profile
well, i don't know if this is ngui fault but here it is the stack calls.

  1. A first chance exception of type 'System.Runtime.InteropServices.SEHException' occurred in UnityEngineProxy.DLL
  2. Exception: External component has thrown an exception.
  3. Type: System.Runtime.InteropServices.SEHException
  4. Module: UnityEngineProxy
  5. InnerException: <No Data>
  6. AdditionalInfo:<No Data>
  7.    at UnityEngineProxy.InternalCalls.Component_CUSTOM_InternalGetTransform(Object self)
  8.    at UnityEngine.Component.InternalGetTransform()
  9.    at UnityEngine.Component.get_transform()
  10.    at UIRect.get_cachedTransform()
  11.    at UIPanel.UpdateTransformMatrix()
  12.    at UIPanel.UpdateSelf()
  13.    at UIPanel.LateUpdate()
  14.    at UIPanel.UnityFastInvoke_LateUpdate()

This happens on change to a complex scene with multiple panels (all siblings) and occurres only after adding an interval loop that does Microsoft.Xna.Framework.FrameworkDispatcher.Update(); every 5 seconds (this is needed to don't make the app crash when wp8 music player is playing)... so really, i don't know if this is related to ngui.

I will try to do more research around the xna framework

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: new fantastic exception! System.Runtime.InteropServices.SEHException
« Reply #1 on: June 26, 2014, 11:29:06 AM »
If you look at the call stack, all that's happening is NGUI is retrieving the object's transform. My guess is that it's some conflict with Unity and what you're doing. You get an error when you try to access the transform from a separate thread as well.