Answer the question
In order to leave comments, you need to log in
Why does warning C6386 occur?
there is this code that creates its own thread for each object from folderList
DWORD hThreadArraySize = sizeof(HANDLE);
hThreadArraySize*=folderList.size();
hThreadArray = (HANDLE*)VirtualAlloc(NULL, hThreadArraySize, MEM_COMMIT, PAGE_READWRITE);
for (std::list<FOLDERDESCRIPTOR>::iterator it = folderList.begin(); it != folderList.end(); it++, i++)
{
hThreadArray[i] = (*it).hThread = CreateThread();
}
Warning C6386 Buffer overrun while writing to 'hThreadArray': the writable size is 'hThreadArraySize' bytes, but '8' bytes might be written.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question