This project is read-only.
1
Vote

Exception when writing/creating output file in a folder with no write rights

description

Latest beta (and probably all previous versions) throws an exception when trying to write/create file in a folder with no sufficient rights. This log in from windows 8.1 when trying to save a ocr'ed file into c:\ (by default windows 8.1 ask for confirmation when trying to write something there). Despite the exception the program continues to run ok, so I could save my file in another folder.
Exception thrown at 5/12/2013 3:48 πμ
Access to the path 'C:\eng.1.ass' is denied.
mscorlib
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding)
   at DvdSubExtractor.CreateAssFile.CreateSubtitleFile()
   at DvdSubExtractor.CreateAssFile.Create(ExtractData data, SortedDictionary`2 ptsOffsets, CreateSubOptions options)
   at DvdSubExtractor.CreateSubtitleFileStep.CreateSubtitle(String fileName, String outputDirectory)
   at DvdSubExtractor.CreateSubtitleFileStep.createSubtitleFileButton_Click(Object sender, EventArgs e)
   at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ButtonBase.WndProc(Message& m)
   at System.Windows.Forms.Button.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

comments