Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Lotti on May 21, 2014, 04:01:11 AM

Title: ngui causes access violation exception on wp8 when resuming the app
Post by: Lotti on May 21, 2014, 04:01:11 AM
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.
Title: Re: ngui causes access violation exception on wp8 when resuming the app
Post by: ArenMook on May 21, 2014, 11:45:55 AM
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?
Title: Re: ngui causes access violation exception on wp8 when resuming the app
Post by: Lotti on May 21, 2014, 02:21:12 PM
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.