PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Odd VC++6 behavior

Something odd just started happening a little while ago... seems that when I go to execute my project under VC++6, where it used to just rebuild the changed files (usually just one if I'm working logically), it now seems to want to rebuild a handful each time, even though they definitely have not changed.

I've played with some settings to try and fix it, but only the incremental compile option seemed appropriate, and it was already checked.

Anyone have any ideas? It's not the end of the world I suppose, but a few seconds here or there adds up after a while. TIA!
Hmm.. *scratches head* Could it be rebuilding files that include the altered file?
Yeah, I thought of that too. The altered file isn't a header, and doesn't include any others except for a single header. All the other source files DO include THAT header, but it's not being changed so I don't think that matters. This source file doesn't even reference anything outside itself and the class defined in the header.
I've had this before and a reboot fixed it once and checking the clock did it the second time. I had my clock set back a month (using the clock settings as a easy way to see what day of the week it was a month ago) and thus the new .OBJ files were always dated earlier than some of the source files (which got changed before I screwed up the clock).

Other than that, make sure you don't have Adobe Photoshop 4.0 running. Photoshop causes *all* kinds of strangeness with VC6.0 on my systems.

Good Luck!
angedelamort · 06 Feb 2004, 14:46 UTC
It's happen when there is a conflict with the time of the obj. A simple way to fix it is to close visual, delete manually all intermediate file (.obj and other files) and to be sure, delete the .ncb and .opt. Reopen VC6 and now it should works.
Well, problem solved...

I tried your suggestion angedelamort, but it didn't fix it for me. However, I then found this page:

http://www.codeguru.com/tools/rewritefiles.shtml

I ran this guy's utility on the entire project (including resources) and it took care of the problem perfectly. I've written a quick batch file using the utility in case this happens again.

Thanks all!
angedelamort · 06 Feb 2004, 18:47 UTC
a good way to avoid this is having a source control system :) even if you are alone it's kind of usefull. You should try Alien Brain (There is a free version for developer with 2 liscence.) Also, there is the ol'good CVS :)
A true source control system wouldn't have helped much here, because it was caused by moving between two PC's. Also, I follow a very stringent source control methodology, and it would have been trivially easy to roll back to a previous version. But that's not really a solution, because changes would have been lost, at best I would have had to diff the files and put back in the changes. That would have been the case with a source contol system too.
angedelamort · 08 Feb 2004, 19:06 UTC
hmmm, what I was thinking was deleting all your local file and do a get latest after that :P
Yeah, good point, that would have worked (theoretically at least), except that I would have lost everything I did since the checkout. It would have depended on how anal I was about check-ints how much I actually wound up losing. Ah well, all's well that ends well I suppose.
well, the solution i suggest for this case is to take your favorite file tool (Total Commander in my case) and simply change all file dates to current. then a rebuild all should work out fine...

DANIEL