[BUG] - Drag and drop not working and crashing after right click on an empty frame
Describe the bug After a fresh installation, when I try to drag and drop a folder, the app doesn't allow the drop. Also, if I right click on the empty frame to try to browse folders to add, the app closes unexpectedly.
To Reproduce Steps to reproduce the behavior:
- Right click on the app icon on the left of Windows clock
- Select 'Add frame'
- Try to drag and drop a folder to the new frame
- Right click on the empty frame
Expected behavior Once the dragged folder is dropped on the empty frame, the frame populates with the folder contents. If right clicking on the frame, a menu opens.
Desktop (please complete the following information):
- OS Version: Windows 10 Pro 22H2
- OS Build: 10.0.19045
Additional context After updating to 1.28.2 from 1.20.3, some of my existing frames were outside of range of my monitor, so I tried some registry fixes. First I tried modifying the X and Y positions to 10, but it didn't work. Then, I tried deleting all child folders from the DeskFrame entry and relaunch the app to recreate the Frames. Nothing worked
I assume you have multiple monitors right?
I couldn't reproduce your other issue.
Please attach the crash log from event viewer.
Now, the drag and drop works, so I can create frames again with no issue. The right click on the header of the frames work as well, but is when I right click on the empty space of a new frame (where the big + sign watermark is), the app crashes. Here the .NET Runtime report:
Application: DeskFrame.exe
CoreCLR Version: 8.0.2025.41914
.NET Version: 8.0.20
Description: The process was terminated due to an unhandled exception.
Exception Info: System.IO.FileNotFoundException: El sistema no puede encontrar el archivo especificado. (0x80070002)
at Vanara.PInvoke.Shell32.ShellUtil.GetShellItemForPath(String path, Boolean forceIfNotExist)
at Vanara.Windows.Shell.ShellItem..ctor(String path)
at DeskFrame.DeskFrameWindow.WndProc(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 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)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at DeskFrame.App.Main()
Let me know if you need the Application Error as well.
Thanks