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

542 Views Asked by At

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

Check this out ....

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

WTF? Every 6 seconds (or so), it's trying to CreateFile at some invalid path. If u notice (in the pic) i've turned off all details EXCEPT the file system activity.

Anyone have any idea's what is going on?

EDIT: Took another screenie with clearer info.
EDIT 2: Can anyone else replicate this? If so, please add a comment if u can. EDIT 3: Could it be because of a plugin i have? eg. Resharper?

2

There are 2 best solutions below

1
On

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

2
On

It is not trying to create a file, if you look at the detail column it is doing "read data/list directory". Probably, it is doing some kind of FindFirstFile, FindNextFile loop, in order to resolve header file includes.