問題タブ [fileloadexception]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
uwp - RichEditBox テキストを自動保存するには?
FileIO.WriteTextAsync();
Grid.Loaded や RichEditBox.TextChanged などの多くのイベントで試してみましたが、そのメソッドは非同期であり、前のサイクルと呼ばれるプロセスと競合します。その結果、System.IO.FileLoadException
次の説明が表示されます。
ファイルが別のプロセスによって使用されているため、プロセスはファイルにアクセスできません。
では、この場合はどうすればよいのでしょうか?