This contains environment variables (PATH, etc., etc.). The C standard (if I remember correctly) requires the environ
point to an array of these variables. They are also passed as the third argument to the main
entry function.
Apparently, for some reason, the C ++ / CLI does not initialize this.
To fix this, you can select it yourself and fill in either getenv (C) or Environment.GetEnvironmentVariables (managed by C ++). I do not know any corrections in place, but this should not be too complicated.
source share