-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Description
I am using CoreConsole as the basis of a custom CoreCLR entry-point for my GUI app. I have patched it to use _tWinMain instead of wmain, and it actually works. However, I find that if there is a space in the full path to the main executable (regardless of the actual value of argv[0]), then either CoreConsole or CoreCLR gets horribly confused. For example, if argv[0] is C:\Users\wjk\Documents\Visual Studio 2015\Projects\MyProject\MyProject.exe, then I get the error Cannot load "Visual.dll". Moving the main executable to a path containing no spaces solves the problem, but is not scalable. Once I install my program into C:\Program Files\MyProgram (and I plan on doing so), it will break again unless this bug is fixed.
I am not familiar enough with the CoreCLR codebase to triage the issue any further. Any pointers?