xamarin / urho

Code to integrate with the Urho3D engine
Other
462 stars 122 forks source link

Crash in UWP after attempting to display UrhoSurface for a second time #362

Closed jkalexander closed 5 years ago

jkalexander commented 5 years ago

Same issue as #210 that was marked closed.
I have a UWP app and am using UrhoSharp in a ContentPage. The first time I navigate to the page, Urho displays fine. The second time, however, I get Could not create window, root cause: 'WinRT only supports one window'. You can omit this exception by subscribing to Urho.Application.UnhandledException event and set Handled property to True. Everything is fine in WPF.

Using UrhoSharp.Forms 1.9.67 (but have tried various others 1.4.38+) and Xamarin.Forms 3.4.0.1008975

jkalexander commented 5 years ago

Calling UrhoSurface.Pause() before the view disappears resolves the issue.