zoukankan      html  css  js  c++  java
  • A pity VS out of date issue

    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 languages.

    3. It should 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:

    A file time is a 64-bit value that represents the number of 100-nanosecond intervals that have elapsed since 12:00 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 3:00pm PST in Washington is seen as 6:00pm EST in New York on an NTFS volume, but it is seen as 3:00pm 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 VS.

  • 相关阅读:
    崩漏
    李翰卿治疗小儿五更咳嗽经验
    34名国宝级名老中医秘方集锦(一)
    黄煌儿科经方
    中医临床参考
    HTML 动态云启动画面
    CANVAS 水波动态背景
    PHP MYSQL单向同步方案
    PHP 获取指定目录下所有文件(包含子目录)
    JS 深度拷贝 Object Array
  • 原文地址:https://www.cnblogs.com/taoxu0903/p/1864552.html
Copyright © 2011-2022 走看看