Search code examples
c#console-application16-bitntvdm.exe

C# console applications all 16bit?


I was reading up about NTVDM.exe as I build a quick test console app and it crashed on a friends machine complaining about this EXE.

As I understand it all DOS cmd windows (C# console apps included) run as 16bit not 32bit.

Is this true? Does this mean all my works console app back office apps are running as 16bit rather than making the most of the 32bit available?

What about Windows services? As I believe we wrote it as a console app then made it run as a windows service?

Thanks


Solution

  • Any .NET app that is compiled for x86 will be 32-bit

    C# console apps aren't running in "real" dos - they run in a 32-bit or 64-bit environment - depending on your OS and .NET framework.