-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Description
Description
When using Wails v3.0.0-alpha.36 on Windows, enabling
EnableDragAndDrop: true
causes the following error at startup:
error registering drag and drop: Not enough memory resources are available to complete this operation
This occurs even in the official demo project.
To Reproduce
Open the generated project and modify the window options:
EnableDragAndDrop: true,
Run the application:
wails dev
Observe the console output:
error registering drag and drop: Not enough memory resources are available to complete this operation
Expected behaviour
-
The application should start normally without any drag-and-drop registration errors.
-
Enabling EnableDragAndDrop: true should allow the app to correctly handle file and folder drag-and-drop events on Windows.
-
No console error messages such as Not enough memory resources are available to complete this operation should appear.
Screenshots
Attempted Fixes
No response
System Details
Wails (v3.0.0-alpha.36) Wails Doctor
# System
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| Name | Windows 10 Pro |
| Version | 2009 (Build: 26200) |
| ID | 25H2 |
| Branding | Windows 11 专业版 |
| Platform | windows |
| Architecture | amd64 |
| Go WebView2Loader | true |
| WebView2 Version | 141.0.3537.99 |
| CPU | 13th Gen Intel(R) Core(TM) i9-13900KF |
| GPU 1 | OrayIddDriver Device (Shanghai Best Oray Information Technology Co., Ltd.) - Driver: 17.1.58.818 |
| GPU 2 | NVIDIA GeForce RTX 4070 Ti (NVIDIA) - Driver: 32.0.15.7260 |
| Memory | 64GB |
└───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
# Build Environment
┌────────────────────────────────┐
| Wails CLI | v3.0.0-alpha.36 |
| Go Version | go1.24.3 |
| -buildmode | exe |
| -compiler | gc |
| CGO_CFLAGS | |
| CGO_CPPFLAGS | |
| CGO_CXXFLAGS | |
| CGO_ENABLED | 1 |
| CGO_LDFLAGS | |
| GOAMD64 | v1 |
| GOARCH | amd64 |
| GOOS | windows |
└────────────────────────────────┘
# Dependencies
┌────────────────────────────────────────────┐
| npm | 11.2.0 |
| NSIS | Not Installed |
| MakeAppx.exe (Windows SDK) | Not Installed |
| MSIX Packaging Tool | Not Installed |
| SignTool.exe (Windows SDK) | Not Installed |
| |
└───────── * - Optional Dependency ──────────┘
# Checking for issues
SUCCESS No issues found
# Diagnosis
SUCCESS Your system is ready for Wails development!Additional context
No response