Getting SIGSEGV (Segmentation fault error)
Hello all.
I am making a program in c++, and i am getting a SIGSEGV (Segmentation fault) error. I have googled it, and it is to do with using pointers incorrectly. However, i do not think i have used them incorrectly. Can someone check this piece of code and correct me.
The error occurs at the EnumProcesses line. Please help ASAP.
@Swag can you help?
@giniyat101 can you help?
I am making a program in c++, and i am getting a SIGSEGV (Segmentation fault) error. I have googled it, and it is to do with using pointers incorrectly. However, i do not think i have used them incorrectly. Can someone check this piece of code and correct me.
Code:
DWORD dwPID[100] = {NULL};
DWORD* ptr = dwPID;
DWORD cbNeeded = NULL;
EnumProcesses(ptr, 100, &cbNeeded);
@Swag can you help?
@giniyat101 can you help?

