XNA Creators Club Online
Page 1 of 1 (6 items)
Sort Posts: Previous Next

Content Pipeline + VS 2005 Solution Error(s)

Last post 4/20/2008 2:57 PM by Stephen Styrchak. 5 replies.
  • 4/18/2008 1:50 AM

    Content Pipeline + VS 2005 Solution Error(s)

    I am having the following problems on two separate development machines;

    I am using TorqueX and when I create a new project from a template I get a "Project Template Wizard - A problem was encountered creating the sub project \'Torque\'. Attempted to read or write protected memory. This is often an indication that other memory is corrupt" error message. Furthermore, only the game project shows up in the solution. The Torque project doesn't. When I close the solution and re-open it the torque project is now there but it's content pipeline is missing. Now, I know you're thinking that I should be posting this on the torque site but I believe this has to do with the xna content pipeline. If I try to add two separate projects with content pipelines to the same solution, VS 2005 crashes. Nothing to do with torque. So I'm thinking this may be a rights issue but I have max rights on the machine so I really don't have a clue what's going on. Again, this is happening on two different machines and one of the machines was completely reinstalled and the problem continued.

    Both machines running XP all patched up,

    VS 2005 Pro on one and VS 2005 Team Edition for Software developers on the other

    XNA 2.0 on both

    TorqueX on both

    One machine Xeon with 2 gig ram, the other p4 2.8ghz 1 gig ram.

    Any help would be most appreciated.

     

  • 4/18/2008 2:23 AM In reply to

    Re: Content Pipeline + VS 2005 Solution Error(s)

    If you have any tool windows open that are related in any way to source code control, please close them before creating a new project. XNA Game Studio exposed a bug, documented someplace (the readme?), that looks something like what you described -- and it is related to SCC.

    If that happens to work, let me know and I'll try to dig up a thread on how to work around it.

     

    Stephen Styrchak | XNA Game Studio Developer
  • 4/18/2008 11:40 AM In reply to

    Re: Content Pipeline + VS 2005 Solution Error(s)

    Both machines have vss installed on them but I did not add the projects to vss nor did I have the vss control panel running. As a test I removed vss from the options - source control - plug-in selection setting and tried to create the project and it failed with the same error. I even tried uninstalling vss with no luck.
  • 4/18/2008 11:57 AM In reply to

    Re: Content Pipeline + VS 2005 Solution Error(s)

    PhenotypeGameStudios:
    Both machines have vss installed on them but I did not add the projects to vss nor did I have the vss control panel running. As a test I removed vss from the options - source control - plug-in selection setting and tried to create the project and it failed with the same error. I even tried uninstalling vss with no luck.

    Sorry that you went to so much trouble. The bug regarding SCC only occurs when the tool windows are visible -- so closing them should have been enough (if they were open in the first place). The bug affects the Pending Checkins and one or two other windows, and the workaround is to put the window in "flat" display mode rather than "tree" display mode (the error has to do with drawing icons in the tree control).

    Unfortunately, the SCC bug I was thinking of is the only one I have heard about that would cause similar behavior.

    Do you have any other third-party add-ins or packages installed in VS? (Things that didn't come with VS?)

    Stephen Styrchak | XNA Game Studio Developer
  • 4/18/2008 8:05 PM In reply to

    Re: Content Pipeline + VS 2005 Solution Error(s)

    I only have an infragistics addin.

    I think I am getting a little closer to the true conditions of the problem.

    I just install VS Express C# and I was able to create a solution with both a windows game and windows game library (both with content pipelines).

    VS 2005 TE still crashes when adding a new project with a content pipeline (CP) to an existing project with a CP but without an existing solution file.

    When adding an existing project with a CP to another existing project with a CP but without an existing solution file VS either crashes or adds the project and removes the CP.

    If I create a project with a CP and add a new or existing project without a CP, therefore creating the solution file, I can then add another new or existing project with a CP without a crash.

    The content pipeline and the solution file seem to be the core of the problem. Likely an order of operations thing. Could be that when the second CP project is added it tries to read and/or write to the solution file which hasn't been created yet. For some reason this doesn't happen with the Express version. Ultimately this is a bug.

  • 4/20/2008 2:57 PM In reply to

    Re: Content Pipeline + VS 2005 Solution Error(s)

    I agree that there's a bug, but it's not clear where it is yet. It might not be a bug in XNA Game Studio. VC# 2005 Express doesn't allow add-ins, so if XGS works in VCSExpress, but not VSTE (do you mean Team Edition?), then it could be an incompatibility with a third-party add-in. This problem has not been reported by anyone else so far, so whatever the bug is, something that is particular to your VS installation and/or configuration is triggering it.

    I'm not certain why you think a solution file isn't created until you add a second project... There is *always* a solution file, even when you are working with only one project. There is a setting in VS that will hide the solution node in the Solution Explorer by default, and only show it when there is more than one project in the solution. Maybe you are using that option. If so, there is a known bug in that area and you have to work around by disabling the option.

    Please try the following steps:

    1. Select Tools->Options... to bring up the Options dialog.
    2. On the left-hand-side of the dialog, select "Projects and Solutions".
    3. On the right-hand-side of the dialog, make sure that the box next to "Always show solution" is checked. (If it isn't, check the box.)
    4. Click OK on the Options dialog.

    Now the solution will always be displayed in the Solution Explorer, even when you have only one project. Please note that the only change is whether this node is visible or not -- there has always been a solution file created for all projects in Visual Studio.

    I think we noted this bug in the readme, but it's not the easiest thing to understand from a short description.

     

    Stephen Styrchak | XNA Game Studio Developer
Page 1 of 1 (6 items) Previous Next