Why is Visual Studio constantly trying to create a dummy / empty file?

I first ran Process Monitor (by Sys Internals) on this Win7 RTM machine to figure out the paths that VS2008 uses when compiling (so I can exclude them from my AV).

Check this....

alt text http://img194.imageshack.us/img194/517/wtfdevenv.png

WTF? Every 6 seconds (or so), it tries to CreateFile on some invalid path. If you notice (in the figure), I disabled all the details of the EXCEPT file system activity.

Does anyone know what is going on?

EDIT: I took another screen with clearer information.
EDIT 2: Can anyone else reproduce this? If yes, add a comment if you can. EDIT 3: Maybe because of the plugin I have? eg. Resharper?

+4
source share
2 answers

It does not try to create a file, if you look at the details column, it performs a β€œdata reading / directory listing”. It probably runs some kind of FindFirstFile , FindNextFile to resolve the file header.

+2
source

The CreateFile function is intended not only for creating files, but also for opening existing files and directories for reading.

+1
source

All Articles