Alright, this is the situation i think is happening in my program.
I believe that there is an object FileStream //write
, conflicting with an object FileStream //read
. Either that or the conflict must be the two objects I use (for output/input) for FileStream
object. In either case, I should be able to solve this simply with destructors.But for debugging knowledge this is what im requesting. How do I find out if two or more objects are in memory at the same time. For example,
FileStream *object1; //for reading setting.dat file,in one part of the program
FileStream *object2; //for writing setting.dat file,in another part of the program
If(//object1 && object2 are both in memory at the time this function is evoked) MessageBox::Show(S"Two filestream objects:{0},{1} are located in memory", object1Name, object2Name);
MessageBox::Show(S"These objects are potentially conflicting one another");