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. IO Exception : Process cannot access the file

IO Exception : Process cannot access the file

Scheduled Pinned Locked Moved C / C++ / MFC
xmlhelp
4 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.
  • Z Offline
    Z Offline
    zxc89
    wrote on last edited by
    #1

    Hi.. When i try to save the modifications done to any xml file using XmlDataDocument variable, the error shown is as follows: The process cannot access the file 'xml file name' because it is being used by another process. Could anyone plz solve this!! Thanks..

    M 1 Reply Last reply
    0
    • Z zxc89

      Hi.. When i try to save the modifications done to any xml file using XmlDataDocument variable, the error shown is as follows: The process cannot access the file 'xml file name' because it is being used by another process. Could anyone plz solve this!! Thanks..

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      zxc89 wrote:

      Could anyone plz solve this!!

      Sure. Don't try to modify the file when it's in use by another process. :) Are you sure you are not leaving the file open somewhere?

      Z 1 Reply Last reply
      0
      • M Mark Salsbery

        zxc89 wrote:

        Could anyone plz solve this!!

        Sure. Don't try to modify the file when it's in use by another process. :) Are you sure you are not leaving the file open somewhere?

        Z Offline
        Z Offline
        zxc89
        wrote on last edited by
        #3

        I am pretty sure that the file is not opened anywhere else..

        M 1 Reply Last reply
        0
        • Z zxc89

          I am pretty sure that the file is not opened anywhere else..

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          The error message indicates a sharing violation. If no other processes are using the file then make sure you haven't opened it twice without appropriate share flags.

          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