leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
778 stars 80 forks source link

Error while setting up environment for the application #248

Open peter8777555 opened 7 months ago

peter8777555 commented 7 months ago

OS : Windows 11 (10.0.22631.2715 23H2)

OK: C:\Windows\system32\cmd.exe and run any DOS programs

NG: C:\Windows\SysWOW64\cmd.exe and run any DOS programs


16 bit MS-DOS Subsystem

Administrator: C:\Windows\SysWOW64\cmd.exe - pc Error while setting up environment for the application. Choose 'Close' to terminate the application.

Close(C) Ignore(I)

LOG.zip

peter8777555 commented 6 months ago

OS : Windows 11 (10.0.22631.2715 23H2)

OK: C:\Windows\system32\cmd.exe and run any DOS programs

NG: Explorer.exe double click run any DOS programs.

16 bit MS-DOS Subsystem

G:\PC.EXE NTVDM has encountered a System Error Access denied。 Choose 'Close' to terminate the application.

Close(C) Ingore(I)

I use Administrator account.

By the way, Windows 7 X64 has no any problems.

Log.zip

pcmicro commented 5 months ago

Could this be caused because Microsoft removed the "Legacy console" feature in December 2023?

leecher1337 commented 4 months ago

So RegisterConsoleVDM call failed. Could be due to Legacy Console removal, as pcmicro said. You can try to reset symbols first with Release\reg\reloadsym.reg just to be sure that it is not related to some bad sybols which often causes weird problems. Otherwise a debugger would be needed to step into mentioned function and also on attached conhost process to check where it fails in particular.

I cannot reproduce the problem, tried on Windows 11 23H2 Build 22631 without any issues (but conhost V1 also still works for me on this release).