xamarin.forms - urhosharp 1.4.4 - uwp .. the second execution 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.


  • tonyleonetonyleone USMember

    I have this in onappearing in a contentpage called with pushmodalasync...

                if( urhoApp == null )
                    urhoApp = await urhoSurface.Show<GameR>(new ApplicationOptions("Data")
                        Orientation = ApplicationOptions.OrientationType.Landscape

    and the error is in

    public class BaseGame : Application

    in this method

        static void Application_UnhandledException1(object sender, Urho.UnhandledExceptionEventArgs e)
  • CaseCase USMember ✭✭✭

    @tonyleone Were you able to resolve this? I'm getting this exact situation. Runs fine once, but the second time same error. I'm guessing it isn't being disposed of properly?

  • CaseCase USMember ✭✭✭

    @tonyleone For anyone else running into this, you must use UrhoSurface.Pause() when done with a surface. Then the next one will run fine.

Sign In or Register to comment.