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. General Programming
  3. C#
  4. Debug error !!!

Debug error !!!

Scheduled Pinned Locked Moved C#
helpdebugging
7 Posts 5 Posters 0 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.
  • B Offline
    B Offline
    B Z
    wrote on last edited by
    #1

    Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...

    B!Z

    L A L 3 Replies Last reply
    0
    • B B Z

      Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...

      B!Z

      L Offline
      L Offline
      Larantz
      wrote on last edited by
      #2

      Sounds like your application doesn't exit in an appropriate fashion. We might be able to help if you provide some sourcecode. -Larantz-

      for those about to code, we salute you
      http://www.itverket.no

      C 1 Reply Last reply
      0
      • B B Z

        Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...

        B!Z

        A Offline
        A Offline
        Amar Chaudhary
        wrote on last edited by
        #3

        check the task manager if it is executing is it could be a virus or an anti virus application .

        It is Good to be Important but! it is more Important to be Good

        1 Reply Last reply
        0
        • L Larantz

          Sounds like your application doesn't exit in an appropriate fashion. We might be able to help if you provide some sourcecode. -Larantz-

          for those about to code, we salute you
          http://www.itverket.no

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Larantz wrote:

          We might be able to help if you provide some sourcecode.

          What source code would you suggest in this particular case?


          Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

          L 1 Reply Last reply
          0
          • B B Z

            Hi !!! whenever i run my application 2nd time, I get the error... i.e Unable to copy file "obj\Debug\File1.exe"to"bin\Debug\File.exe". The process cannot access the file 'bin\Debug\File1.exe' because it is being used by another process. wts the reason behind it. I also closed or free all the resources. plz help me out...

            B!Z

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            If your app is running, the EXE file is locked and a new build will fail. Most probable cause is you create some thread that does not finish, and was not declared a background thread. Background threads don't prevent an app from exiting, foreground threads do. See Thread.IsBackground :)

            Luc Pattyn [Forum Guidelines] [My Articles]


            this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


            B 1 Reply Last reply
            0
            • C Colin Angus Mackay

              Larantz wrote:

              We might be able to help if you provide some sourcecode.

              What source code would you suggest in this particular case?


              Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

              L Offline
              L Offline
              Larantz
              wrote on last edited by
              #6

              I see your point - as he doesn't know where it's happening and it might be a large application. Though he could show us exitpoint of application, cleanups, anything related to starting/stopping threads perhaps. :) -Larantz-

              for those about to code, we salute you
              http://www.itverket.no

              Please refer to the Forum Guidelines for appropriate posting.

              1 Reply Last reply
              0
              • L Luc Pattyn

                If your app is running, the EXE file is locked and a new build will fail. Most probable cause is you create some thread that does not finish, and was not declared a background thread. Background threads don't prevent an app from exiting, foreground threads do. See Thread.IsBackground :)

                Luc Pattyn [Forum Guidelines] [My Articles]


                this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google


                B Offline
                B Offline
                B Z
                wrote on last edited by
                #7

                Thanx all of u for helping me in removing the error.

                B!Z

                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