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. Visual Studio
  4. Link error

Link error

Scheduled Pinned Locked Moved Visual Studio
helpquestioncsharpvisual-studio
5 Posts 2 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.
  • K Offline
    K Offline
    Koolski
    wrote on last edited by
    #1

    Hello All, A couple of weeks ago I started getting the following error, but I don't know what is causing it. LINK : fatal error LNK1168: cannot open ..\Bin\Administrator.exe for writing It happens after I've run the application from with Visual Studio (2003), but I'm sure nothing is leaking so that something would keep the file in use. I use Boundschecker to check for leaks. My work around is to go to the Windows Explorer and delete the executable from there. That always works so the file isn't "in use" from an operating system point of view. Any ideas as to what changed or what causes this quite irritating problem??? Thanks in advance. Koolski

    L 1 Reply Last reply
    0
    • K Koolski

      Hello All, A couple of weeks ago I started getting the following error, but I don't know what is causing it. LINK : fatal error LNK1168: cannot open ..\Bin\Administrator.exe for writing It happens after I've run the application from with Visual Studio (2003), but I'm sure nothing is leaking so that something would keep the file in use. I use Boundschecker to check for leaks. My work around is to go to the Windows Explorer and delete the executable from there. That always works so the file isn't "in use" from an operating system point of view. Any ideas as to what changed or what causes this quite irritating problem??? Thanks in advance. Koolski

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

      Hi, as long as Administrator.exe is still running (hence visible in Task Manager) the file is locked and cannot be replaced by any program, including Visual. The easiest way to keep a program running even when its main Form got closed, is by having one or more threads that haven't finished yet *and* don't have their IsBackground property set true. A background thread does not keep an app from exiting, a foreground one does. :)

      Luc Pattyn [Forum Guidelines] [My Articles]


      Fixturized forever. :confused:


      K 1 Reply Last reply
      0
      • L Luc Pattyn

        Hi, as long as Administrator.exe is still running (hence visible in Task Manager) the file is locked and cannot be replaced by any program, including Visual. The easiest way to keep a program running even when its main Form got closed, is by having one or more threads that haven't finished yet *and* don't have their IsBackground property set true. A background thread does not keep an app from exiting, a foreground one does. :)

        Luc Pattyn [Forum Guidelines] [My Articles]


        Fixturized forever. :confused:


        K Offline
        K Offline
        Koolski
        wrote on last edited by
        #3

        Luc Pattyn wrote:

        as long as Administrator.exe is still running (hence visible in Task Manager) the file is locked and cannot be replaced by any program, including Visual

        The thing is though, it's not visible in the task manager. No applications and no processes. It appears to be completely exited when you look at the output window in Visual Studio. Any other ideas?

        L 1 Reply Last reply
        0
        • K Koolski

          Luc Pattyn wrote:

          as long as Administrator.exe is still running (hence visible in Task Manager) the file is locked and cannot be replaced by any program, including Visual

          The thing is though, it's not visible in the task manager. No applications and no processes. It appears to be completely exited when you look at the output window in Visual Studio. Any other ideas?

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

          After being downvoted all my remaining ideas suddenly have vanished. :~

          Luc Pattyn [Forum Guidelines] [My Articles]


          Fixturized forever. :confused:


          K 1 Reply Last reply
          0
          • L Luc Pattyn

            After being downvoted all my remaining ideas suddenly have vanished. :~

            Luc Pattyn [Forum Guidelines] [My Articles]


            Fixturized forever. :confused:


            K Offline
            K Offline
            Koolski
            wrote on last edited by
            #5

            Whatever... :confused: The prompt asks whether this was helpful; yes or no, not rate it on a scale of 1 to 10 -- Your response was, in essence, "if it's still running, then it's still running". I don't bother someone else until I have done my work, eliminating the obvious. I guess honesty isn't the best policy.

            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