Greenshot crashes when hotkey registration fails and OneDrive is not installed
Description
GDI object count: 25 User object count: 15
Exception: System.IO.DirectoryNotFoundException Message: Could not find a part of the path 'C:\Users\david\AppData\Local\Microsoft\OneDrive\settings\Personal'.
Stack: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileSystemEnumerableIterator`1.CommonInit() at System.IO.Directory.GetFiles(String path, String searchPattern) at Greenshot.MainForm.IsOneDriveBlockingHotkey() at Greenshot.MainForm.HandleFailedHotkeyRegistration(String failedKeys) at Greenshot.MainForm.RegisterHotkeys(Boolean ignoreFailedRegistration) at Greenshot.MainForm..ctor(CopyDataTransport dataTransport) at Greenshot.MainForm.Start(String[] arguments)
Thanks for the feedback, no problem. That version is not the "final" release though, that is why it's marked "unstable" as it needed testing.
Working on making a new release available for all, there is no reason for you to go back, but please update in a few days. (there are some more fixes for other bugs we found)
David Rawcliffe December 29, 2016 at 11:33 PM
Hi robin.... you are really great, less than 24 hours after bug re[port and fixed! yes build 107 clears my problem, thanks a million , david
Yes, but Greenshot should not crash in that case... so it's a bug.
Greenshot checks the settings of OneDrive, to see if the screen capture is enabled. Due to the fact that it uses the same hotkeys, a lot of people are confused and that part of code enhances the error message.
David Rawcliffe December 29, 2016 at 10:31 AM
on looking more detail seems like the problem is that i have uninstalled ms one ddrive
GDI object count: 25
User object count: 15
Exception: System.IO.DirectoryNotFoundException
Message: Could not find a part of the path 'C:\Users\david\AppData\Local\Microsoft\OneDrive\settings\Personal'.
Stack:
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileSystemEnumerableIterator`1.CommonInit()
at System.IO.Directory.GetFiles(String path, String searchPattern)
at Greenshot.MainForm.IsOneDriveBlockingHotkey()
at Greenshot.MainForm.HandleFailedHotkeyRegistration(String failedKeys)
at Greenshot.MainForm.RegisterHotkeys(Boolean ignoreFailedRegistration)
at Greenshot.MainForm..ctor(CopyDataTransport dataTransport)
at Greenshot.MainForm.Start(String[] arguments)
Configuration dump: