Jump to content
  • Advertisement

Archived

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

JKross

Program behaving differently on recompile w/o source change

This topic is 5593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
Guest Anonymous Poster
memory leak?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
bad pointers?

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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!