当我到达 strcpy 行时,我得到
An unhandled exception of type 'System.AccessViolationException' occurred.
Additional information: Attempted to read or write protected memory.
This is often an indication that other memory is corrupt.
char* str; char* out;
str = (char*) Marshal::StringToHGlobalAnsi(Parms["AVI"]).ToPointer();
strcpy(out, str);
Marshal::FreeHGlobal(IntPtr(str));