Something interesting is that the error code arrives immediately after the program is started. Even the init step does not happen and that is the first line of code in _tmain.