leecher1337 / ntvdmx64

Run Microsoft Windows NTVDM (DOS) on 64bit Editions
823 stars 81 forks source link

Python and ntvdmx64: not valid application #180

Closed padremayi closed 2 years ago

padremayi commented 2 years ago

Hi, I build the source code and from command line I can launch 16 bit applications without problems.

I'm working on a Python application and the problem is if I launch 16 bit app within Python it doesn't work. It seems that using os.system(), subprocess and other Python libraries, ntvdmx64 is not "intercepted". I receive the error that the application is not a valid application for current OS, like ntvdmx64 is not present.

Any idea?

leecher1337 commented 2 years ago

Have you checked with DbgView, if loader injects into your python runtime environment properly? Maybe there is a problem with loader propagation into your process.

padremayi commented 2 years ago

This is the output launching the app from command line: https://pastebin.com/4um9JHM8

This is the one from Python: https://pastebin.com/KC7RF5wC

leecher1337 commented 2 years ago

I don't see that it's running inside python.exe. When you launch your application, do you usually launch python.exe with the script file as a parameter?

Also try the following: Don't launch python Githubissues.

  • Githubissues is a development platform for aggregating issues.