Wow…
I have absolutely no idea what is going on with this code. As far as I can tell, it’s not my doing. Basically tracked the error out to the file output module (as expected). However it seems that because I had two ofstreams on the go, it was causing some kind of data corruption and hence things were breaking all over the place.
No idea what’s caused this; whether this is expected behaviour or not. I’m fairly certain that I’ve at least got the code narrowed down now. There was some very odd memory management going on, but that was definately my doing. That is now sorted. However I woin’t be happy until I’ve determined precisely what is causing this very strange output.
My plan of attack is to try the code out on my desktop PC tomorrow. I’ve got a similar setup there but as far as I know, everything “works”. If I can replicate the strange oddities there then there’s got to be something wrong with my code and I’ll fix it. If not, then I’m stumped.
Either way this is something that I really don’t want to have to deal with right now. This program was supposed to be finished and I’ve even gone ahead and written the damn write-up of the project. To find that something is going critically wrong is quite disheartening, and I can’t even trust my own results anymore.
However I can’t do anything else on it tonight. I’m just too tired to concentrate anymore nad I think that this is just going to introduce more and more stupid errors into the code. Frankly I’m considering reverting to the old codebase and just starting with a fresh sub-class. I know the method works, but I can’t believe I’m having so many problems with these (comparitvely) simple output classes.
Gah. Not a good day.












