Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / December 2003



Tip: Looking for answers? Try searching our database.

Trouble with file mod date

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 11 Dec 2003 06:53 GMT
Hi,

I'm having some weird trouble with a file's modification date and the
debugger.
I recently moved some source files from a network drive to a local drive.
Now, one of the files (and only one as far as I can tell) is giving an error
that I can't get rid of:

"Invalid file modification date.
The modification date for the file "xxx" does not match its date stored in
the debugging information. <snip>"

The program is behaving strangely in the code from this source file.
Debugging is doing strange things, recognizing part of the source file and
recognizing breakpoints in part,  but not in others. I've tried "Remove
object code" and "Synchronize modification dates", and "Reset Project Entry
Paths" (not that I know what that does), but to no avail.

The source file in question (ie that's in the project and that comes up in
the debugger) seems to be the correct one, ie in the correct location.

Anyone have any ideas?

Thanks,
Michael
MW Ron - 11 Dec 2003 15:39 GMT
>Hi,
>
[quoted text clipped - 13 lines]
>object code" and "Synchronize modification dates", and "Reset Project Entry
>Paths" (not that I know what that does), but to no avail.

Trash your sym files,  delete the source file and add it back again to
your project.  I think that will resolve all things... but let me know
if it doesn't there may be other things to try.

>The source file in question (ie that's in the project and that comes up in
>the debugger) seems to be the correct one, ie in the correct location.

But the sym file information is for a different file and that is why you
are getting the error.   I've seen this before when moving files,
(especially if the project is open)  It probably still has some cache
set for the network drive.

I'm not sure what the problem is,  ultimately it is Metrowerks problem
to solve even if it is an OS quirk,  so please report this to
Metrowerks.  Even if the fix is simple.  If enough people report it then
it will be given the highest priority.

Ron

Signature

                                New from Metrowerks
The CodeWarrior Wireless Development Kit for Symbian OS, SEMC P900 Edition
   Easy-to-use, integrated tools and hardware for SEMC P900 Development
http://www.metrowerks.com/MW/Develop/Wireless/Symbian/SymbianWDKC.htm

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Michael - 11 Dec 2003 18:04 GMT
> >Hi,
> >
[quoted text clipped - 30 lines]
> Metrowerks.  Even if the fix is simple.  If enough people report it then
> it will be given the highest priority.

First I tired: 1a) remove source file from project 1b) "remove object code"
from project 2) close CW 3) delete the output app for the project targe in
question (ie the package that contains the sym file) 4) delete the target
settings file for the project 5) start CW 6) put source file back into
project 7) rebuild project --- same problem!

Then I tried 1) remove source file from project 2) copy the source file
contents into a new source file 3) add the new source file to the project 4)
quit CW 5) delete sym file itself from output app package 6) restart CW 7)
recompile ---- it worked!

Maybe a corruption in the source file itself? Bad bit in Finder data? In any
case, this reminded me that I've had to do the same kind of thing a few
times over the past few years, both on CW Mac and MS VC++ Windows.

I'm still getting weird behavior in the program, but now it's probably due
to my buggy code!

Thanks,
Michael
MW Ron - 11 Dec 2003 19:34 GMT
>Then I tried 1) remove source file from project 2) copy the source file
>contents into a new source file 3) add the new source file to the project 4)
>quit CW 5) delete sym file itself from output app package 6) restart CW 7)
>recompile ---- it worked!

Whoo Hoo !!

>Maybe a corruption in the source file itself? Bad bit in Finder data? In any
>case, this reminded me that I've had to do the same kind of thing a few
>times over the past few years, both on CW Mac and MS VC++ Windows.
>
>I'm still getting weird behavior in the program, but now it's probably due
>to my buggy code!

good luck, and thanks for sticking with it and finding the fix.

Ron

Signature

                                New from Metrowerks
The CodeWarrior Wireless Development Kit for Symbian OS, SEMC P900 Edition
   Easy-to-use, integrated tools and hardware for SEMC P900 Development
http://www.metrowerks.com/MW/Develop/Wireless/Symbian/SymbianWDKC.htm

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.