Archived

This topic is now archived and is closed to further replies.

JKross

Program behaving differently on recompile w/o source change

Recommended Posts

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?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
You''re using Intercal and didn''t specify the -nobug command line parameter?

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites