Open Dave-1337 opened 2 weeks ago
Hi,
Can you execute vdesk --info
and copy the result ?
It seems that one of the windows api is not found.
Normaly you don't need the .net runtime, the beta version is shipped with all it need.
I have done some rework to reduce the size of the exe and change to mode of compilation to AOT.
(Basically it take less space and should be faster)
on Windows 10: c:\temp\vdesk>vdesk --info OS Version: 10.0.19045.5011 Working Director: c:\temp\vdesk Provider: VDesk.Interop.Build19044_0000.VirtualDesktopProvider
Test:
c:\temp\vdesk>vdesk run -o 2 -n "c:\temp\putty.exe" ←[1m←[31mUnhandled exception: ←[39m←[22m←[1m←[31mSystem.Runtime.InteropServices.COMException (0x8002802B): Exception of type 'System.Runtime.InteropServices.COMException' was thrown. at <VDesk_Interop_Build19044_0000_IApplicationViewCollection>F76E5AED48B0FFD7E8193D5061FAE8D35E8AAA2949D3BAE4D1B9E261C801195A8__InterfaceImplementation.global::VDesk.Interop.Build19044_0000.IApplicationViewCollection.GetViewForHwnd(IntPtr) + 0xd3 at VDesk.Interop.Build19044_0000.VirtualDesktopProvider.MoveToDesktop(IntPtr, Guid) + 0x54 at VDesk.Commands.Run.RunCommand.Execute() + 0xbb at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult) + 0xb2 at System.CommandLine.ParseResult.Invoke() + 0xac at VDesk.VDesk.Main(String[] args) + 0xa8←[39m←[22m
on Windows11 24h2: c:\VDESK>vdesk --info OS Version: 10.0.26100.2033 Working Director: c:\VDESK Provider: VDesk.Interop.Build26100_0000.VirtualDesktopProvider
Test:
c:\VDESK>vdesk.exe run -o 2 -n "c:\vdesk\putty.exe" Unhandled exception: System.Runtime.InteropServices.COMException (0x8002802B): Exception of type 'System.Runtime.InteropServices.COMException' was thrown. at <VDesk_Interop_Build26100_0000_IApplicationViewCollection>F7D7715AFB4C28C625BA625E7B2078C59EDE09DA8D677D3E1F51DBC87AC217116__InterfaceImplementation.global::VDesk.Interop.Build26100_0000.IApplicationViewCollection.GetViewForHwnd(IntPtr) + 0xd3 at VDesk.Interop.Build26100_0000.VirtualDesktopProvider.MoveToDesktop(IntPtr, Guid) + 0x54 at VDesk.Commands.Run.RunCommand.Execute() + 0xbb at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult) + 0xb2 at System.CommandLine.ParseResult.Invoke() + 0xac at VDesk.VDesk.Main(String[] args) + 0xa8
Ok, i think we have the same version, so i should be able to reproduce I will look into it tonight
Hello, thanks for the update Beta6, but unfortunately it doesn't work as it should, tested on a Windows 11 24h2 PC and a Windows 10 PC (current patch level). I first create a second desktop using vdesk.exe create 2, but then I want to open any program on the second desktop and unfortunately that no longer works. The command vdesk.exe run -o 2 -n notepad.exe works fine, but if I want to start putty on the second desktop, for example, using the command vdesk run -o 2 -n "c:\temp\putty.exe" (regardless of whether with or without "" ), the program starts on the primary desktop and outputs the following error message:
←[1m←[31mUnhandled exception: ←[39m←[22m←[1m←[31mSystem.Runtime.InteropServices.COMException (0x8002802B): Exception of type 'System.Runtime.InteropServices.COMException' was thrown. at <VDesk_Interop_Build19044_0000_IApplicationViewCollection>F76E5AED48B0FFD7E8193D5061FAE8D35E8AAA2949D3BAE4D1B9E261C801195A8__InterfaceImplementation.global::VDesk.Interop.Build19044_0000.IApplicationViewCollection.GetViewForHwnd(IntPtr) + 0xd3 at VDesk.Interop.Build19044_0000.VirtualDesktopProvider.MoveToDesktop(IntPtr, Guid) + 0x54 at VDesk.Commands.Run.RunCommand.Execute() + 0xbb at System.CommandLine.Invocation.InvocationPipeline.Invoke(ParseResult) + 0xb2 at System.CommandLine.ParseResult.Invoke() + 0xac at VDesk.VDesk.Main(String[] args) + 0xa8←[39m←[22m
What could that be about? I have already installed Net. Runtime 8. Or could this have something to do with the language version of Windows? (German version in use) What’s the deal with file size? since the previous version was quite large as a single exe file, or as a package with the runtimes - but now only the single exe file which is quite small?