Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. Why VS 2010 sucks today

Why VS 2010 sucks today

Scheduled Pinned Locked Moved The Lounge
visual-studiocsharpc++comdebugging
15 Posts 9 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Chris Meech

    I've not experienced this oddity at all. With either Static libs or Dynamic ones. Are you sure that the lock is from VS? :)

    Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra] posting about Crystal Reports here is like discussing gay marriage on a catholic church’s website.[Nishant Sivakumar]

    A Offline
    A Offline
    Anthony Mushrow
    wrote on last edited by
    #6

    Well, restarting VS always fixed it... easy way to check though *goes and looks* EDIT: Yup, devenv.exe has the file.

    My current favourite phrase: I've seen better!

    -SK Genius

    Source Indexing and Symbol Servers[^]

    modified on Wednesday, January 19, 2011 12:53 PM

    1 Reply Last reply
    0
    • A Anthony Mushrow

      And VS2008 as far as I can remember, and perhaps earlier versions too. If I have two C++ projects, ProjectA which produces a static library and ProjectB hat uses that lib, after building ProjectB for the first time Visual Studio will keep the ProjectA.lib file locked, so that any subsequent builds will fail because it can't update or access ProjectA.lib so you have to restart Visual Studio to build the project again. This happens every time, and it's starting to become a little tedious.

      My current favourite phrase: I've seen better!

      -SK Genius

      Source Indexing and Symbol Servers[^]

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #7

      Is this in the same solution? If it is with two instances open for two solutions then I'm not surprised.

      Join the cool kids - Come fold with us[^]

      A 1 Reply Last reply
      0
      • S Steve Maier

        We ran into this with 2005 and 2008. What we did to get around it was to add a post build step to copy the lib to a different folder and then in the second project it referenced that one instead of the one that was built directly. Definately a PITA, but it worked for us.

        Steve Maier

        A Offline
        A Offline
        Anthony Mushrow
        wrote on last edited by
        #8

        An excellent idea, I was trying to use the project dependencies and "Link with project dependencies" option, but if it means I don't have to restart visual studio every time I want to do a build then then I guess it's the only way to go.

        My current favourite phrase: I've seen better!

        -SK Genius

        Source Indexing and Symbol Servers[^]

        1 Reply Last reply
        0
        • A Anthony Mushrow

          And VS2008 as far as I can remember, and perhaps earlier versions too. If I have two C++ projects, ProjectA which produces a static library and ProjectB hat uses that lib, after building ProjectB for the first time Visual Studio will keep the ProjectA.lib file locked, so that any subsequent builds will fail because it can't update or access ProjectA.lib so you have to restart Visual Studio to build the project again. This happens every time, and it's starting to become a little tedious.

          My current favourite phrase: I've seen better!

          -SK Genius

          Source Indexing and Symbol Servers[^]

          M Offline
          M Offline
          Member 96
          wrote on last edited by
          #9

          SK Genius wrote:

          If I have two C++ projects

          Well there's your problem right there. This *is* 2011, not 1994. ;)


          There is no failure only feedback

          1 Reply Last reply
          0
          • L Lost User

            Is this in the same solution? If it is with two instances open for two solutions then I'm not surprised.

            Join the cool kids - Come fold with us[^]

            A Offline
            A Offline
            Anthony Mushrow
            wrote on last edited by
            #10

            Nope, same solution. With project dependencies and Link Library Dependencies set.

            My current favourite phrase: I've seen better!

            -SK Genius

            Source Indexing and Symbol Servers[^]

            1 Reply Last reply
            0
            • A Anthony Mushrow

              And VS2008 as far as I can remember, and perhaps earlier versions too. If I have two C++ projects, ProjectA which produces a static library and ProjectB hat uses that lib, after building ProjectB for the first time Visual Studio will keep the ProjectA.lib file locked, so that any subsequent builds will fail because it can't update or access ProjectA.lib so you have to restart Visual Studio to build the project again. This happens every time, and it's starting to become a little tedious.

              My current favourite phrase: I've seen better!

              -SK Genius

              Source Indexing and Symbol Servers[^]

              P Offline
              P Offline
              peterchen
              wrote on last edited by
              #11

              Have you reported to Microsoft Connect[^]?

              FILETIME to time_t
              | FoldWithUs! | sighist | WhoIncludes - Analyzing C++ include file hierarchy

              1 Reply Last reply
              0
              • A Anthony Mushrow

                And VS2008 as far as I can remember, and perhaps earlier versions too. If I have two C++ projects, ProjectA which produces a static library and ProjectB hat uses that lib, after building ProjectB for the first time Visual Studio will keep the ProjectA.lib file locked, so that any subsequent builds will fail because it can't update or access ProjectA.lib so you have to restart Visual Studio to build the project again. This happens every time, and it's starting to become a little tedious.

                My current favourite phrase: I've seen better!

                -SK Genius

                Source Indexing and Symbol Servers[^]

                Mike HankeyM Offline
                Mike HankeyM Offline
                Mike Hankey
                wrote on last edited by
                #12

                There is a known problem that sometimes happens when a designer is open it locks a file and build fails. Have you got a designer open? Work around from MS...close all designers.

                I like long walks, especially when they are taken by people who annoy me. http://www.hq4thmarinescomm.com[^]
                My Site

                A 1 Reply Last reply
                0
                • Mike HankeyM Mike Hankey

                  There is a known problem that sometimes happens when a designer is open it locks a file and build fails. Have you got a designer open? Work around from MS...close all designers.

                  I like long walks, especially when they are taken by people who annoy me. http://www.hq4thmarinescomm.com[^]
                  My Site

                  A Offline
                  A Offline
                  Anthony Mushrow
                  wrote on last edited by
                  #13

                  No designers in site, It's basically only a static library and a console app to run a couple of tests on. It's all a bit weird. It has (seemed to, for now) stopped doing it since I went through the project dependencies and References and enabled / disabled linking with dependencies and the dependencies themselves.

                  My current favourite phrase: I've seen better!

                  -SK Genius

                  Source Indexing and Symbol Servers[^]

                  Mike HankeyM 1 Reply Last reply
                  0
                  • A Anthony Mushrow

                    No designers in site, It's basically only a static library and a console app to run a couple of tests on. It's all a bit weird. It has (seemed to, for now) stopped doing it since I went through the project dependencies and References and enabled / disabled linking with dependencies and the dependencies themselves.

                    My current favourite phrase: I've seen better!

                    -SK Genius

                    Source Indexing and Symbol Servers[^]

                    Mike HankeyM Offline
                    Mike HankeyM Offline
                    Mike Hankey
                    wrote on last edited by
                    #14

                    The beast with a mind of it's own for sure. I'm currently working in VS2008 and the properties color picker decided it would go to just giving me a list of colors instead of the ever so faithful {custom, web, system } had to restart VS to get regular color picker back.

                    I like long walks, especially when they are taken by people who annoy me. http://www.hq4thmarinescomm.com[^]
                    My Site

                    1 Reply Last reply
                    0
                    • S Steve Maier

                      We ran into this with 2005 and 2008. What we did to get around it was to add a post build step to copy the lib to a different folder and then in the second project it referenced that one instead of the one that was built directly. Definately a PITA, but it worked for us.

                      Steve Maier

                      H Offline
                      H Offline
                      Hans Dietrich
                      wrote on last edited by
                      #15

                      Yes, that is what I do.

                      Best wishes, Hans


                      [Hans Dietrich Software]

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups