Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Crashes with any parameters / arguments #20

Open
bcdady opened this issue Apr 27, 2015 · 0 comments
Open

Crashes with any parameters / arguments #20

bcdady opened this issue Apr 27, 2015 · 0 comments

Comments

@bcdady
Copy link

bcdady commented Apr 27, 2015

When launching gitpad.exe from console prompt (in my case PowerShell.exe), and passing an argument, in attempt to discover any acceptable parameters, gitpad crashes with the following 'feedback':

PS .\> .\Gitpad.exe -?
System.ArgumentException: Illegal characters in path.
   at System.Security.Permissions.FileIOPermission.HasIllegalCharacters(String[] str)
   at System.Security.Permissions.FileIOPermission.AddPathList(FileIOPermissionAccess access, AccessControlActions control, String
[] pathListOrig, Boolean checkForDuplicates, Boolean needFullPath, Boolean copyPathList)
   at System.Security.Permissions.FileIOPermission..ctor(FileIOPermissionAccess access, AccessControlActions control, String[] pat
hList, Boolean checkForDuplicates, Boolean needFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, I
nt32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions opt
ions, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions opt
ions)
   at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   at System.IO.StreamReader..ctor(String path, Encoding encoding)
   at System.IO.File.ReadAllText(String path, Encoding encoding)
   at Gitpad.Program.Main(String[] args)

Unhandled Exception: System.ArgumentNullException: Value cannot be null.
Parameter name: path
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant