{"action":"closed","issue":{"url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/79","labels_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/79/labels{/name}","comments_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/79/comments","events_url":"https://api.github.com/repos/canton7/SyncTrayzor/issues/79/events","html_url":"https://github.com/canton7/SyncTrayzor/issues/79","id":74091275,"number":79,"title":"Unhandled Exception for quickly created then deleted files","user":{"login":"JLJTGR","id":5780236,"avatar_url":"https://avatars.githubusercontent.com/u/5780236?v=3","gravatar_id":"","url":"https://api.github.com/users/JLJTGR","html_url":"https://github.com/JLJTGR","followers_url":"https://api.github.com/users/JLJTGR/followers","following_url":"https://api.github.com/users/JLJTGR/following{/other_user}","gists_url":"https://api.github.com/users/JLJTGR/gists{/gist_id}","starred_url":"https://api.github.com/users/JLJTGR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JLJTGR/subscriptions","organizations_url":"https://api.github.com/users/JLJTGR/orgs","repos_url":"https://api.github.com/users/JLJTGR/repos","events_url":"https://api.github.com/users/JLJTGR/events{/privacy}","received_events_url":"https://api.github.com/users/JLJTGR/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/canton7/SyncTrayzor/labels/fix-scheduled","name":"fix-scheduled","color":"5319e7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-07T18:59:02Z","updated_at":"2015-05-07T20:19:52Z","closed_at":"2015-05-07T20:19:52Z","body":"After upgrading to v1.0.17.0, I've been getting some crashes of the GUI when I task switch.  I attached SyncTrayzor to Visual Studio and captured the following exception:\r\n```\r\nSystem.IO.FileNotFoundException was unhandled\r\n  _HResult=-2147024894\r\n  _message=File C:\\Users\\<------->\\.idea\\workspace.xml___jb_bak___ not found\r\n  HResult=-2147024894\r\n  IsTransient=false\r\n  Message=File C:\\Users\\<------->\\.idea\\workspace.xml___jb_bak___ not found\r\n  Source=SyncTrayzor\r\n  StackTrace:\r\n       at SyncTrayzor.Utils.PathEx.GetLongPathName(String shortPath) in c:\\Documents\\projects\\SyncTrayzor\\src\\SyncTrayzor\\Utils\\PathEx.cs:line 41\r\n       at SyncTrayzor.Services.DirectoryWatcher.PathChanged(String path) in c:\\Documents\\projects\\SyncTrayzor\\src\\SyncTrayzor\\Services\\DirectoryWatcher.cs:line 135\r\n       at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)\r\n       at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)\r\n  InnerException: \r\n```\r\nIndeed, there is no file named that at the listed location.\r\n\r\nAccording to ProcMon, when switching windows away from AndroidStudio, several workspace.xml \"old\" and \"bak\" files will be quickly created and deleted (1.6ms window).  \r\n\r\nI suspect that the FileSystemWatcher is notifying you of these files being created, but when you get to the files they are gone and I guess you don't account for that.\r\n"}}