Free writer
This commit is contained in:
1 parent
9b31d674cd
commit
26f0c82db1
1 file changed
+10
@@ -177,11 +177,21 @@ namespace VocaluxeLib.Songs
|
||||
_WriteHeader();
|
||||
_WriteNotes();
|
||||
}
|
||||
catch (UnauthorizedAccessException)
|
||||
{
|
||||
CBase.Log.LogError("Cannot write " + filePath + ". Directory might be readonly or requires admin rights.");
|
||||
return false;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
CBase.Log.LogError("Unhandled exception while writing " + filePath + ": " + e);
|
||||
return false;
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (_Tw != null)
|
||||
_Tw.Dispose();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user