Page 1 of 1
Changing Build Configurations Crashes VS2008
Posted: Sat May 15, 2010 11:23 pm
by Programmer2010
On Windows XP SP3, whenever I attempt to switch build configurations for Audacity, VC9 (VS2008) crashes. It worked just fine for the compilation of WXWidgets (2.8.11). I'm using the SVN trunk. Is there something I'm not doing correctly? The steps I'm following are:
1. Open the Audacity checkout directory in My Computer (Windows Explorer).
2. Go to the win subfolder, and open that.
3. Double-click "audacity.sln."
4. Once Visual Studio loads and displays "Ready" in the status line, open Solution Explorer.
5. Select the Audacity solution at the top of the tree, then right-click the solution and choose Configuration Manager from the right-click menu.
6. Press Up or Down Arrow to try and change solution build configurations; VS crashes, giving an error reporting dialog.
This even happens after a restart.
Tyler
Re: Changing Build Configurations Crashes VS2008
Posted: Sun May 16, 2010 9:53 am
by Gale Andrews
Programmer2010 wrote:On Windows XP SP3, whenever I attempt to switch build configurations for Audacity, VC9 (VS2008) crashes. It worked just fine for the compilation of WXWidgets (2.8.11). I'm using the SVN trunk. Is there something I'm not doing correctly? The steps I'm following are:
1. Open the Audacity checkout directory in My Computer (Windows Explorer).
2. Go to the win subfolder, and open that.
3. Double-click "audacity.sln."
4. Once Visual Studio loads and displays "Ready" in the status line, open Solution Explorer.
5. Select the Audacity solution at the top of the tree, then right-click the solution and choose Configuration Manager from the right-click menu.
6. Press Up or Down Arrow to try and change solution build configurations; VS crashes, giving an error reporting dialog.
This even happens after a restart.
Tyler
It certainly doesn't happen in VS2008 in Windows 7 for me. It would sound like a VS problem. Does it also crash if you change configuration using the dropdown menu to right of the green button, without going into Configuration Manager?
You could try replacing audacity.sln with a clean copy from SVN. Then remove the Unicode Release etc. build folders from the win directory and from winProjectsAudacity. Deleting and restoring Audacity.vcproj from winProjectsAudacity might help too.
Gale
Re: Changing Build Configurations Crashes VS2008
Posted: Sun May 16, 2010 5:05 pm
by Programmer2010
Still no go. VS crashes even when I choose a build configuration from the drop-down menu. Might this simply be an issue of uninstalling and reinstalling VS on my system?
Re: Changing Build Configurations Crashes VS2008
Posted: Sun May 16, 2010 5:48 pm
by Gale Andrews
Programmer2010 wrote:Gale Andrews wrote: It certainly doesn't happen in VS2008 in Windows 7 for me. It would sound like a VS problem. Does it also crash if you change configuration using the dropdown menu to right of the green button, without going into Configuration Manager?
You could try replacing audacity.sln with a clean copy from SVN. Then remove the Unicode Release etc. build folders from the win directory and from winProjectsAudacity. Deleting and restoring Audacity.vcproj from winProjectsAudacity might help too.
Still no go. VS crashes even when I choose a build configuration from the drop-down menu. Might this simply be an issue of uninstalling and reinstalling VS on my system?
I would suggest you replace the build folders and proj files I mentioned with clean copies (or better, delete the source tree and download it again). Also you may come across issues building Audacity with wx2.8.11. This isn't officially supported yet, because 2.8.11 has only been out a few weeks. If 2.8.11 is a problem, you can get 2.8.10
here.
Unless you got errors installing VS, reinstalling it per se may not help. Did you add
VS2008 SP1 after VS2008? VS 2008 SP1 has a lot of bug fixes.
And though not relevant until you actually build Audacity, do you have an appropriate
SDK too? Windows Server 2003 R2 PSDK on that page should be OK.
BTW: note we haven't got around to officially supporting VS 2010 yet. If anyone needs VS 2008, it's
here.
Gale
Re: Changing Build Configurations Crashes VS2008
Posted: Mon May 17, 2010 2:17 am
by Gale Andrews
Programmer2010 wrote:(From PM) No go. Tried updating to VS 2008 SP1, downgrading Wx, deleting and redoing the source tree...all have not worked. My SDK is V7.0, but that shouldn't have to do with it. Might there be some type of syntactical error in either audacity.sln or any of the component .vcproj files? Not likely, but who knows? And would it crash if my $(WXWIN) environment variable's version of the path to Wx is of a different case from the actual path (e.g.,
set WXWIN=c:Wx
when the path is
c:wx
)?
I wouldn't think so, given the Windows file system is case-insensitive. I think you should try Googling around. I did find a
report that suggests VS2008 SP1 actually breaks the Windows SDK Configuration tool, but I think this is something else than Configuration Manager. You could certainly try running the VS2008 installer and "repairing" as it suggests there.
Otherwise, ask on the
VS2008 Forums.
The only other suggestion I have for now is to remove the configurations you don't want to build from the audacity.sln file, so that there are no choice of configurations to be made.
Gale
Re: Changing Build Configurations Crashes VS2008
Posted: Fri May 21, 2010 8:31 pm
by Programmer2010
I've tested my VS2008 installation with other .sln files, and it works correctly. This means that the problem is the audacity.sln file or one of its associated .vcproj files.
Re: Changing Build Configurations Crashes VS2008
Posted: Sat May 22, 2010 3:16 pm
by Gale Andrews
Programmer2010 wrote:I've tested my VS2008 installation with other .sln files, and it works correctly. This means that the problem is the audacity.sln file or one of its associated .vcproj files.
If you and I both have a clean Audacity source tree with clean audacity.sln and .vcproj files and you experience the crash, but I don't, where does the difference lie? On my XP machine, I certainly have the older Platform SDK. Have you done a "repair" installation?
Maybe you should ask on the VS forums how to debug the crash, and then post where exactly the VS problem is occurring?
Gale
Re: Changing Build Configurations Crashes VS2008
Posted: Sat May 22, 2010 6:14 pm
by Programmer2010
I'm using the Windows SDK for Windows 7 and Windows Server 2008 (otherwise known as Windows SDK V7.0), if that makes any difference.
Re: Changing Build Configurations Crashes VS2008
Posted: Sun May 23, 2010 6:13 pm
by Gale Andrews
Programmer2010 wrote:I'm using the Windows SDK for Windows 7 and Windows Server 2008 (otherwise known as Windows SDK V7.0), if that makes any difference.
I know. But whatever the reason, I don't get the crash (Win 7/Win SDK 7 and Win XP/Platform SDK).
Gale