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. XML reader/writer

XML reader/writer

Scheduled Pinned Locked Moved C#
xmlhelpquestion
4 Posts 3 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.
  • F Offline
    F Offline
    felopater
    wrote on last edited by
    #1

    hii all; i got a very serious problem, there is two process that read/write xml files in the same time how can i control this with good preformance and without exception. thx alot for your time. marcoryos

    M D 2 Replies Last reply
    0
    • F felopater

      hii all; i got a very serious problem, there is two process that read/write xml files in the same time how can i control this with good preformance and without exception. thx alot for your time. marcoryos

      M Offline
      M Offline
      Mohamad Al Husseiny
      wrote on last edited by
      #2

      is this problem related to thread issue as you know you now have synchronize access to the file you need to take care when you read while you are write at the same time so you have to consider some thread synchronization in your code Note:not all thread synchronization available in .net will work for interprocess communication

      1 Reply Last reply
      0
      • F felopater

        hii all; i got a very serious problem, there is two process that read/write xml files in the same time how can i control this with good preformance and without exception. thx alot for your time. marcoryos

        D Offline
        D Offline
        DavidNohejl
        wrote on last edited by
        #3

        Put writing/reading stuff into lock block, it should work for you. Never forget: "Stay kul and happy" (I.A.)
        David's thoughts / dnhsoftware.org / MyHTMLTidy

        M 1 Reply Last reply
        0
        • D DavidNohejl

          Put writing/reading stuff into lock block, it should work for you. Never forget: "Stay kul and happy" (I.A.)
          David's thoughts / dnhsoftware.org / MyHTMLTidy

          M Offline
          M Offline
          Mohamad Al Husseiny
          wrote on last edited by
          #4

          i think using lock may not work in his case because when using lock you actutually using Monitor which Prevents more than one thread at a time from accessing a file but it have not ability to span application and process boundaries

          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