Just wondering if I am creating an array of shared memory on a Windows platform, for example:
HANDLE hFile = CreateFileMapping(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE | SEC_COMMIT, 0, 1024 * 4, _T("mySharedMemName")); if(hFile) { VOID* pData = MapViewOfFile(hFile, FILE_MAP_ALL_ACCESS, 0, 0, 1024 * 4);
Is a memory array initialized to 0 with the first call to this piece of code? And if not, how to make it zero initialized?
source share