TKMM-Team / Tkmm

A mod merger and manager for Tears of the kingdom
https://tkmm.org
MIT License
46 stars 8 forks source link

Crash when trying to write to a TKCL file if it's locked #14

Closed okmika closed 3 months ago

okmika commented 3 months ago
System.IO.IOException: The process cannot access the file 'C:\Users\User\Downloads\archive.tkcl' because it is being used by another process.
   at Microsoft.Win32.SafeHandles.SafeFileHandle.CreateFile(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options)
   at Microsoft.Win32.SafeHandles.SafeFileHandle.Open(String fullPath, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.OSFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.SyncWindowsFileStreamStrategy..ctor(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategyCore(String path, FileMode mode, FileAccess access, FileShare share, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.Strategies.FileStreamHelpers.ChooseStrategy(FileStream fileStream, String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize, Nullable`1 unixCreateMode)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, Int64 preallocationSize)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean useAsync)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize)
   at System.IO.File.Create(String path, Int32 bufferSize)
   at System.IO.File.Create(String path)
   at Tkmm.Core.Components.PackageBuilder.Package(String inputFolder, String outputFile) in C:\Users\User\Sources\Tkmm\src\Tkmm.Core\Components\PackageBuilder.cs:line 133
   at Tkmm.ViewModels.Pages.PackagingPageViewModel.<>c__DisplayClass9_0.<<Create>b__0>d.MoveNext() in C:\Users\User\Sources\Tkmm\src\Tkmm\ViewModels\Pages\PackagingPageViewModel.cs:line 124