VMware Workstation crashes if you hide the window using ShowWindow(SW_HIDE) and then make it reappear uisng ShowWindow(SW_SHOWNORMAL).
Error:
VMware Workstation unrecoverable error: (vmui)
Exception Oxc0000005 (access violation) has occurred.
A log file is available in
"C:\Users\<USERNAME>\AppData\Local\Temp\vmware-<USERNAME>\vmware-
ui-16460.log".
You can request support.
To collect data to submit to VMware support, choose "Collect Support
Data" from the Help menu.
You can also run the "vm-support" script in the Workstation folder
directly.
We will respond on the basis of your support entitlement.
-------------------------------------------------------------------------------------------------------
OS: Windows 11 IoT Enterprise (24H2, 26100.1)
VMWare Workstation: 25.0.0.24995812
I wrote a small C# program that triggers the crash:
using System;
using System.Runtime.InteropServices;
using System.Threading;
class _
{
[DllImport("user32.dll", SetLastError = true)]
public static extern int ShowWindow(IntPtr hWnd, SHOWWINDOW nCmdShow);
[DllImport("user32.dll", SetLastError = true)]
public static extern IntPtr FindWindow(string className, string windowName);
[DllImport("user32.dll", SetLastError = true)]
public static extern int SetWindowPos(IntPtr hWnd, IntPtr hWndInsertAfter, int x, int y, int cx, int cy, SETWINDOWPOS uFlags);
static void Main(string[] args)
{
IntPtr result = FindWindow(null, "VMware Workstation");
ShowWindow(result, SHOWWINDOW.SW_HIDE);
Thread.Sleep(2000);
ShowWindow(result, SHOWWINDOW.SW_SHOWDEFAULT);
}
}
public enum SHOWWINDOW
{
SW_HIDE = 0,
SW_SHOWNORMAL = 1,
SW_NORMAL = 1,
SW_SHOWMINIMIZED = 2,
SW_SHOWMAXIMIZED = 3,
SW_MAXIMIZE = 3,
SW_SHOWNOACTIVATE = 4,
SW_SHOW = 5,
SW_MINIMIZE = 6,
SW_SHOWMINNOACTIVE = 7,
SW_SHOWNA = 8,
SW_RESTORE = 9,
SW_SHOWDEFAULT = 10,
SW_FORCEMINIMIZE = 11
}
public enum SETWINDOWPOS : uint
{
SWP_NOSIZE = 0x0001,
SWP_NOMOVE = 0x0002,
SWP_NOACTIVATE = 0x0010
}
Compile it using : C:\Windows\Microsoft.NET\Framework64\v2.0.50727\csc.exe vmware.cs and run it with VMware Workstation running and the home page being the title of the window.
-------------------------------------------