Whenever i try to execute my code, I get the following error:
Here's my code (only relevant code posted):Debug Error!
Program: <Program Path>
DAMAGE: after Normal block (#44) at 0x002F2AC8.
I'm using MSVC++ 6 Ent, btw.Code:for(int i = 1; i < 4; i++) { char * tempStr = new char[strlen(argv[i])]; strcpy(tempStr, argv[i]); for(int j = 0; j < strlen(argv[i]); j++) { if(argv[i][j] == 'A') tempStr[j] = '0' + a; if(argv[i][j] == 'B') tempStr[j] = '0' + b; if(argv[i][j] == 'C') tempStr[j] = '0' + c; } Numbers[i - 1] = atol(tempStr); delete[] tempStr; //Error on this line. tempStr = NULL; }