Program behaving differently on recompile w/o source change
In my app I''ve got a class that reads tga files. It seems like every other time I compile my program reads junk data from the files. However, the other times it reads the data just fine.
What the hell could cause this?
quote:Original post by Anonymous Poster
You''re using Intercal and didn''t specify the -nobug command line parameter?
hehe.
Anyway, I''d of thought it was a memory leak too except that it was occuring exactly every other time I compiled. It would be a little strange for a memory leak to act so consistently, I think. And I was pretty sure I kept it pretty clean. Also, uninitialized variables really couldn''t be it because I was reading the bogus(or so I thought) data into the vars.
So finally I discovered that in my resource base I had two files named exactly the same thing at two different locations on my drive. For some reason, every other time I compiled the compiler would switch off between the two different files. Turns out the second file was compressed so my program couldn''t read it. Kinda threw me for a loop :-). Anyway, thanks for the suggestions.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement