• ORBITER-FORUM will be temporarily closed at 2026-07-23 18:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

Debug CRT memory allocation

What do you get if you do:
Code:
char path[256];
memset(path, 0, sizeof(path));
if (_getcwd(path, 256) == NULL)
{
     WriteLog("Error getting working directory!");
} else {
     WriteLog(path);
     // do stuff here
}
 
Back
Top