DeskFrame icon indicating copy to clipboard operation
DeskFrame copied to clipboard

[BUG] - Drag and drop not working and crashing after right click on an empty frame

Open Ikailhaz opened this issue 1 year ago • 4 comments

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:

  1. Right click on the app icon on the left of Windows clock
  2. Select 'Add frame'
  3. Try to drag and drop a folder to the new frame
  4. 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

Ikailhaz avatar Sep 30 '25 17:09 Ikailhaz

I assume you have multiple monitors right?

PinchToDebug avatar Oct 01 '25 10:10 PinchToDebug

I couldn't reproduce your other issue.

PinchToDebug avatar Oct 01 '25 11:10 PinchToDebug

Please attach the crash log from event viewer.

PinchToDebug avatar Oct 01 '25 12:10 PinchToDebug

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

Ikailhaz avatar Oct 01 '25 15:10 Ikailhaz