Intermittent Problem with Preferences on Windows #27167
Labels
area-essentials
Essentials: Device, Display, Connectivity, Secure Storage, Sensors, App Info
essentials-preferences
platform/windows 🪟
potential-regression
This issue described a possible regression on a currently supported version., verification pending
t/bug
Something isn't working
Milestone
Description
I get an intermittent IOException failure ("The process cannot access the file '...\Settings\preferences.dat' because it is being used by another process") trying to set a preference while exiting a MAUI program, probably as a result of a
Window.Deactivated
event. I have not been able to reproduce it in a simple test case, but it happens from time to time in my complex (about 16k lines of C# and XAML) app. I've added a link to the app repository below in case you want to look at the code.Here's what the failure looks like, if you want me to collect more or different information next time it happens, I can.
Steps to Reproduce
Itt's not reproducible to order.
Link to public reproduction project repository
https://github.com/david-maw/DivisiBill.git
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.93 SR9.3
Affected platforms
Windows
Affected platform versions
Windows 11
Did you find any workaround?
No
Relevant log output
The text was updated successfully, but these errors were encountered: