benrhughes / todotxt.net

An implementation of todo.txt for Windows using the .NET framework
http://benrhughes.github.io/todotxt.net/
Other
500 stars 123 forks source link

TDT 3.3.1 (beta) crashes on opening second instance #379

Open shulist opened 5 years ago

shulist commented 5 years ago

Expected Behaviour: A second instance of TDT should open when the icon is selected. Actual Behaviour: The app freezes and then crashes with the error message

An unexpected error ocurred Object reference not set to an instance of an object. Please see Help -> Show Error Log for more details

Error Log:

[2019-02-11 16:47:34] An unexpected error occurred
System.NullReferenceException: Object reference not set to an instance of an object.
   at Client.MainWindow.OnClosed(EventArgs e)
   at System.Windows.Window.WmDestroy()
   at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
caseydiers commented 1 year ago

This appears to have been previously fixed as I use multiple instances regularly and have never run into this issue.