Created On:  26 January 2012

Problem:

When compiling a .exe application to 64 bit you get the following error message in the compilation output:

* Starting code generation
* 006-R Read failure on input file. Not intermediate code or wrong version
ERROR: (9) Program indicated failure

Resolution:

A common cause for this error message is when you try to compile an executable to 64 bit on a 32 bit machine.

Please note that although you can use the P64 directive (which compiles applications to 64 bit using a 32 bit machine), you can only compile to intermediate ( .int ) code to 64 bit on a 32 bit machine.

The only way that you can build a 64 bit EXE or DLL is to use Net Express on a 64 bit machine.

Incident #2548035