Discussion:
The case of the bizarre vanishing file?
(too old to reply)
David Webber
2009-12-21 20:53:09 UTC
Permalink
1. Yesterday I attempted to compile my source code and was told that the
file

sourceannotations.h

included in sal.h was not present.

Sure enough

C:\Program files (x86)\Microsoft Visual Studio 9.0\VC\include\sal.h

does include the file

C:\Program files (x86)\Microsoft Visual Studio
9.0\VC\include\CodeAnalysis\sourceannotations.h

and sure enough, it wasn't there.

2. So I copied it in there from the old Visual Studio installation (on the
machine I'm transferring my projects from) and all was well.

3. Except that over the course of today it has vanished twice more.
(I am currently working on a complicated new DLL with compilation failing
more often than not as I get things straightened out.)

There's something deeply suspicious going on here - can anyone enlighten me?

Dave
--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
David Webber
2009-12-22 08:36:42 UTC
Permalink
It seems to be happening when I close visual studio and re-open it, if that
is anything to go on.

Dave
--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
David Lowndes
2009-12-22 09:25:35 UTC
Permalink
Post by David Webber
It seems to be happening when I close visual studio and re-open it, if that
is anything to go on.
Weird.

Any sign of the installer running when you restart VS?

What happens if you place that file in a different (include) location
- one different from where it ought to be installed by default?

Dave
David Webber
2009-12-22 16:07:54 UTC
Permalink
Post by David Lowndes
Post by David Webber
It seems to be happening when I close visual studio and re-open it, if that
is anything to go on.
Weird.
Any sign of the installer running when you restart VS?
What happens if you place that file in a different (include) location
- one different from where it ought to be installed by default?
Well it has just happened to one of my own header files too - so maybe that
answers the question.

I have a feeling it is something to do with it being a new 64bit win7
machine, but I can't put my finger on anything.

Dave
--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
David Lowndes
2009-12-22 23:54:54 UTC
Permalink
Post by David Webber
I have a feeling it is something to do with it being a new 64bit win7
machine, but I can't put my finger on anything.
Anything else about the machine behaving oddly? Ran a chkdsk?

Dave
David Webber
2009-12-24 17:35:12 UTC
Permalink
Post by David Lowndes
Post by David Webber
I have a feeling it is something to do with it being a new 64bit win7
machine, but I can't put my finger on anything.
Anything else about the machine behaving oddly? Ran a chkdsk?
No and no - but it seems miraculously to have started behaving itself for
the last couple of days.

Weird!

I'll come back to this if it happens again. Meanwhile I need to install
some printers and am sort of hoping that 64bit drivers are available for all
the ones I need.

Thanks for the ideas.

Dave
--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
Tom Walker
2009-12-22 16:10:02 UTC
Permalink
Post by David Webber
3. Except that over the course of today it has vanished twice more.
(I am currently working on a complicated new DLL with compilation failing
more often than not as I get things straightened out.)
Just a guess. When you copy the file into the Program Files subdirectory,
are you doing the copy from an elevated (administrator) command prompt? If
not, then the file is probably really getting copied into a subdirectory of
C:\Users\David\AppData\Local\VirtualStore. Are you running Visual Studio
elevated? If so then it might not see the files in the VirtualStore
subdirectories.
David Webber
2009-12-24 17:40:04 UTC
Permalink
Post by Tom Walker
Post by David Webber
3. Except that over the course of today it has vanished twice more.
(I am currently working on a complicated new DLL with compilation failing
more often than not as I get things straightened out.)
Just a guess. When you copy the file into the Program Files subdirectory,
are you doing the copy from an elevated (administrator) command prompt? If
not, then the file is probably really getting copied into a subdirectory
of C:\Users\David\AppData\Local\VirtualStore. Are you running Visual
Studio elevated? If so then it might not see the files in the VirtualStore
subdirectories.
Interesting thought, but there's nothing like this in the virtual store.
I *think* I am doing all the appropriate operations in elevated mode. (I am
copying from Windows explorer and giving explicit permission when asked.)

Dave
--
David Webber
Mozart Music Software
http://www.mozart.co.uk
For discussion and support see
http://www.mozart.co.uk/mozartists/mailinglist.htm
Continue reading on narkive:
Loading...