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 / C++ / MFC
  4. fatal error LNK1168: cannot open x.dll for writing

fatal error LNK1168: cannot open x.dll for writing

Scheduled Pinned Locked Moved C / C++ / MFC
comhelpquestionannouncement
4 Posts 4 Posters 2 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.
  • A Offline
    A Offline
    albean
    wrote on last edited by
    #1

    I'm writting a COM plug-in for a service. I'm able to register and unregister the dll with the service. Even after i unregister the dll I still get that error because the file is still in use. When I check with the service it reports that its not using my dll. I thought that the COM library knew when nothing was using a component and would release it. I'm adding features and debugging my dll so I have to compile it often. I don't want to reboot my computer each time I want to comple the component. Is there a way to manually release this dll?

    C A 2 Replies Last reply
    0
    • A albean

      I'm writting a COM plug-in for a service. I'm able to register and unregister the dll with the service. Even after i unregister the dll I still get that error because the file is still in use. When I check with the service it reports that its not using my dll. I thought that the COM library knew when nothing was using a component and would release it. I'm adding features and debugging my dll so I have to compile it often. I don't want to reboot my computer each time I want to comple the component. Is there a way to manually release this dll?

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Is it a COM+ app ? It could be getting pooled and need stopping in COM+ Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?! - Jon Hulatt, 22/3/2002

      1 Reply Last reply
      0
      • A albean

        I'm writting a COM plug-in for a service. I'm able to register and unregister the dll with the service. Even after i unregister the dll I still get that error because the file is still in use. When I check with the service it reports that its not using my dll. I thought that the COM library knew when nothing was using a component and would release it. I'm adding features and debugging my dll so I have to compile it often. I don't want to reboot my computer each time I want to comple the component. Is there a way to manually release this dll?

        A Offline
        A Offline
        Aniruddha Loya
        wrote on last edited by
        #3

        Did you find a solution to this? I'm facing a similar problem working on creating ShellExtensions. Thanks!

        H 1 Reply Last reply
        0
        • A Aniruddha Loya

          Did you find a solution to this? I'm facing a similar problem working on creating ShellExtensions. Thanks!

          H Offline
          H Offline
          Harold Mei
          wrote on last edited by
          #4

          Happened to me as well. Attached the shell extension dll to SearchFilterHost.exe for debugging purpose, after the debugging finished I need to rebuild the dll but encountered the problem abovementioned. Solution is to stop SearchFilterHost.exe in task manager afterwards.

          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