carabasha

I'm running XP Home + SP2. Video adapter is NVidia GeForce 4 MX 440.

Visual Studio C++ Express 2005.

My monitor goes into a blackout/clicking frenzy due to resolution changes it believes exist during any build. This happens every time "Compiling..." appears in the Output window, and when "Linking..." comes up in it. This slows down my builds a lot, plus I can't use the machine for other tasks while all this is going on. The resolution appears to switch to some very low value, and the cursor appears as a fairly large white square on this black background.

The problem lies somewhere in my Windows setup/registry. I know this because:

a) It isn't Visual C++ 2005 Express itself - this behaviour doesn't manifest on another computer with this same app installed..

b) It isn't my monitor - I've hooked it to the VGA output of the other working system and there's no problem.

If I hook another monitor to the non-working system's VGA output, the problem is still there, except I don't hear relay clicks, but I get blackouts just the same.

c) It isn't the graphics adapter, or its driver; I swap them both out with a known working set and the problem persists.

The problem wasn't always there; it began when I did a system restore. I managed to get it back once, but then wasn't allowed to revert after that. That's many months and new installations ago, so restore is anyway out of the question now. It's accompanied by freeze-up when I try to run some very old DOS programs. This can be cured by running in Safe Mode (or using freeware called DosBox), but Safe Mode doesn't fix the Visual Studio issue, which is why I'm posting here. Something in Windows obviously got cacked.

I've tried registry cleaning - no help. I've tried copying system files from a known good system - also no go. I've looked into the registry manually, but nothing looks helpful. I've tried finding stuff associated with the ComSpec, since the big black clicking screen looks suspiciously like a full screen version of cmd.exe at very low resolution. Perhaps if I could find that "default run full screen" bit in the registry...

Has anyone experienced this, or something like it I don't want to re-install Windows - I have too many apps and it would take forever.





Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Andreas Johansson

The only reason I think your monitor would be switching modes is if your build process invokes custom build steps that runs in a command prompt that is maximized. This could be different between computers depending on your settings for the command prompt. These settins should be visible in the pif file of the default command prompt executable.






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

carabasha

Thanks for thinking about this. I looked for cmd.pif and *.pif on both my Windows root drive (all files) and in the Visual Studio folder (on a different partition) and there's nothing to be found. I should say that I'm not using the Custom Build option in Visual Studio in this case. However, I believe that your intuition is correct and it has something to do with maximisation of some shell window. Do you know where I can modify the properties of the shell window that Visual Studio spawns

Andrew Palfreyman






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Andreas Johansson

Does this happen even for a new project like the windows forms template






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Andreas Johansson

When compiling an application this directory is used and you might want to check the settings for these applications.

C:\Program Files\Microsoft Command Shell\v1.0

make-shell.exe
msh.exe






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

carabasha

I'm building Win32 console apps exclusively. During new project creation using the wizard, nothing untoward happens. The problem occurs during builds (compiles and/or links), and for the run command where the window is fullscreen and the font is massive. If nothing else, I'd like some control over the run window properties.

I've noticed, incidentally, that the run window auto-disappears on run completion, which wasn't the case for older versions of Studio. I'd also like to be able to configure this something-whatever-it-is configuration file to keep it painted up after run completion.

But for now, just inhibiting maximisation will probably do the trick. Need to know where the knobs are that I need to twiddle...

Andrew






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Andreas Johansson

I get what you need but I have no clue what you need to do.

You could use filemon to find out what executables are used.
http://www.sysinternals.com/Utilities/Filemon.html






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

carabasha

This folder doesn't exist on this machine (note that Visual Studio is installed to a different drive partition). An exhaustive search for either of these files on both partitions comes up blank.

I looked at the MSH.EXE documentation, but nowhere do I find download /installation guidelines. I'm stuck. It seemed so promising.

Andrew






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Andreas Johansson

That means I am pretty much out of ideas...




Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

carabasha

Shouldn't this folder and these executables you mention be installed by default by Studio as part of the .NET 2.0 Framework Perhaps I can revisit the Studio install process and make it pop them where you say you see them




Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

carabasha

I fired up Filemon (thank you!) and built a simple project. Interestingly, it looks for cmd.exe in loads of places, and settles on the Windows version:

6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\VC\bin\cmd.exe NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\VC\PlatformSDK\bin\cmd.exe PATH NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\Common7\Tools\bin\prerelease\cmd.exe PATH NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\Common7\Tools\bin\cmd.exe PATH NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\Common7\tools\cmd.exe NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\Common7\ide\cmd.exe NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION C:\Program Files\HTML Help Workshop\cmd.exe PATH NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\SDK\v2.0\bin\cmd.exe NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\cmd.exe NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION D:\Apps\VisualStudioExpress2005\cmd.exe NOT FOUND Attributes: Error
6:39:12 PM VCExpress.exe:2336 QUERY INFORMATION C:\WINDOWS\System32\cmd.exe SUCCESS Attributes: A
6:39:12 PM VCExpress.exe:2336 OPEN C:\WINDOWS\System32\cmd.exe SUCCESS Options: Open Access: All

I imagine I'm getting warmer. What do you think

Andrew






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

carabasha

The problem has been solved, after watching builds click by for about 6 months. It turns out to be an issue related to an unknown Windows file in one of the foundational building block of Windows XP - DOS.

The solution was this:

In Windows/system32, run command.com. In the properties dialog, unset the full screen option, set the windowing option. Save as "applying permanently" (i.e. to all invocations).

No idea where the properties are stored. Don't care actually. But a little lesson here for all of us Windows users and developers - you can hide DOS behind a modern GUI, but you can't make it go away.

Andrew






Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Mike Danes

Couple of things:

  • MSH is NOT used/installed by any of the Visual Studio editions.
  • It's normal to look for cmd.exe in all those directories, it just looks in the PATH after all.

What happens if you start the command prompt You have at least to ways to start it. One is to use the shortcut that is somewhere in the Start menu (Programs\Accesories I think) the other one is to start it from Start menu by typing "cmd" at the Run prompt.

You should try starting it and see if you get a full screen console (especially try the Run option).

If for the Run option you get a full screen console do the following:

Go to Windows\System32 folder and see if you find a file named console.dll. If you find it copy it to another folder and rename it to console.cpl. No click the renamed file. You should get a dialog with the default console properties. Right on the first page you should see and option about Window/Full Screen mode. Check the Window option.





Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Mike Danes

He he... I answered a bit too late . It has nothing to do with DOS. It's just the default settings for console had full screen enabled. The settings for console are stored in registry: HKEY_CURRENT_USER\Console.





Re: Installing and Registering Visual Studio Express Editions Visual Studio C++ Express 2005 builds send my monitor nuts

Bu Shaz

Mike, I think i love you...

This is exactly what fixed my full screen headache;

1.) Cut console.dll from C:\Windows\System32

2.) Paste the file into root folder C:\ and rename it as console.cpl

3.) open the file (double click) and unselect full screen (i also changed the color of the black background)

4.) Accept changes, rename it back to console.dll and repaste it into original location C:\Windows\System32

PROBLEM FIXED!

It would previously take over 20 seconds for a basic output statement to compile. Now build and compile time is instant for simple programs!

fullscreen full screen slow compile build white box cursor speed up