A pity vs out of date issue

Source: Internet
Author: User
Tags filetime

I met a vs out-of-date compiling issue. The situation is:

1. it appear all the time if compiling a vs2010 C ++/CLI project. After a successful build, press F5 to run it, prompt me: out of date! After using debugview for further research, the result is: everytime vs finds the EXE is in first modified time (it's correct) while the PDB modified date is always wrong from its real date displayed in explorer. googled, but no result...

2. It doesn' t reproduce for vs2008 and vs2010 other ages.

3. it shoshould relate to the random compile error if compiling targeting to DOTNET 4.0 for the VC project: "error: Not valid Win32 filetime ". but I can't figure out the reason ..

By diagnosticing A vs out-of-date issue, whatever, I gained something:

1. filetime stored by NTFS vs fat. There is a filetime stored in file system. msdn gives good example to help understand it:

 

AFile timeIs a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since a.m. january 1, 1601 Coordinated Universal Time (UTC ). the system records file times when applications create, access, and write to files.

The NTFS file system stores time values in UTC format, so they are not affected by changes in time zone or Daylight Saving Time. the fat file system stores time values based on the local time of the computer.For example, A file that is saved at pm PST in Washington is seen as pm EST in New York on an NTFS Volume, but it is seen as 3: 00 pm EST in New York on a fat volume.

 

2.Debugview+Devenv.exe. config: To trace down issue: Enable C ++ Project System Logging

Note: Open debugview firstly and then open.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.