When I use VS2010, I got an error creating a c++ project

前端 未结 2 1396
迷失自我
迷失自我 2021-02-07 02:39

An error occurred while creating or opening the C++ browsing database file r:/t1/t1.sdf. IntelliSense and browsing information will not be available for C++ projects. En

2条回答
  •  清歌不尽
    2021-02-07 03:03

    No amount of installing SQL Server Compact, repairing VS, etc. fixed this for me. Finally I saw something about a Network drive or RAM disk being unsuitable.

    http://social.msdn.microsoft.com/Forums/vstudio/en-US/3a15f89c-074e-413c-ac6b-f8fceb64b7b1/how-do-i-enable-intellisense-to-work-on-a-ramdisk?forum=visualstudiogeneral

    I assume that the database uses low level access to the file system that is incompatible with RAM disk or network drives, etc. The following setting moved the sdf file to a location that does not interfere with whatever direct access the database demands. After a VS restart the problem vanished.

    tl;dr TOOLS / Options / Text Editor / C++ / Advanced / Always use fallback location = True

提交回复
热议问题