Created
November 24, 2013 18:50
-
-
Save wilfrem/7630796 to your computer and use it in GitHub Desktop.
MonoGameのTexture2DでFromStreamをasync/await内で呼び出すと、(理由が不明だが)処理が帰ってこない
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
例えば、Windows Store App(WinRT)ではファイル読み込みは非同期なので読み込み処理内でasync/awaitを使うと楽だが(そして、外ではTask.Waitする) | |
その中でTexture2D.FromStreamを呼び出すと、何故か処理が帰ってこない。。。(Task.Waitのところで) | |
DirectXかWICのどちらかでデッドロックしてる??? | |
回避方法は、FromStreamを呼び出すところを同期的に呼び出す |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment