I am using the following for loop to iterate through STL list, but I get a runtime "Access Violation" on the cornerLstIt++ statement. It seems as though the iterator is dead by the time it gets through the loop once (Everything works fine up until the point of the error) What is happening to my iterator?
for(cornerLstIt = cornerLst.begin(); cornerLstIt != cornerLst.end() ;cornerLstIt++;
//need to put Corner\\ in front.
strcpy(filepath, strcat(filepath, append));
strcpy(filepath, strcat(directory, filepath));