Author Topic: ngui causes access violation exception on wp8 when resuming the app  (Read 3971 times)

Lotti

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 47
    • View Profile
Hello!

We are experiencing a lot of problems when resuming the app (app get resumed from background or from in-app purchase) and managed to resolve them by adding a delay before execute callbacks.
Now we got error on dynamic fonts (Prepare function on NGUIText.cs) when resuming after in-app purchase.

Any idea or a better approach to fix those kinds of exceptions?

Thank you.
« Last Edit: May 21, 2014, 04:51:04 AM by Lotti »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Can you explain what you mean by adding a delay before execute callbacks?

As for dynamic fonts... dynamic fonts in Unity is a half-unfinished feature, so combined with a new platform like WP8 I'm not surprised that there are more issues to be found. What's the error, and have you tried sticking to bitmap fonts instead?

Lotti

  • Newbie
  • *
  • Thank You
  • -Given: 5
  • -Receive: 0
  • Posts: 47
    • View Profile
we don't execute callbacks when the in-app payment returns, but we introduced a delay to execute those callbacks after some seconds (we are essentially waiting the resuming of unity player). It seems that access violation occurs when unity/ngui code execution occurs while the app is not fully resumed.