When I insert the below code into my program, I get a core. Can somebody maybe point out any obvious problems? Thanks in advance:
code
-----------------------------------------------------------
if(mfileInfo.GetName().data() != NULL) {
if(mfileInfo.GetName() == *(mfileList_m[index]->getName())) {
return(mfileList_m[index]->openMfile(mfileInfo);
}
else {
continue; //this group of if's is in a for loop.
}
}
------------------------------------------------------------
mfileInfo.GetName().data() returns a char*, so is it legal to do a (char* != NULL)? I have a feeling that it is that line that is hosing me up.
And just so you have more info: mfileInfo.GetName() is a CSIString whereas mfileList[index]->getName() is a CSIString*