You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I have discovered some bug. The problem is that the Unload event doesn't fires when we are closing the main window. So it leads to the problems with Unloading all the game resources. I have found the solution. We can use Dispatcher,ShutdownStarted event instead of Unload event of the Control. I have tested it, it worked properly. Also I have discovered that this problem is a common thing.
Here is the ref to Stackoverflow: link
So I suggest to change
Unloaded += OnUnloaded; on the 54 line in the MonoGameContent Control to:
Dispatcher.ShutdownStarted += OnUnloaded; It works for me.
The text was updated successfully, but these errors were encountered:
Hello! I have discovered some bug. The problem is that the Unload event doesn't fires when we are closing the main window. So it leads to the problems with Unloading all the game resources. I have found the solution. We can use Dispatcher,ShutdownStarted event instead of Unload event of the Control. I have tested it, it worked properly. Also I have discovered that this problem is a common thing.
Here is the ref to Stackoverflow: link
So I suggest to change
Unloaded += OnUnloaded; on the 54 line in the MonoGameContent Control to:
Dispatcher.ShutdownStarted += OnUnloaded; It works for me.
The text was updated successfully, but these errors were encountered: