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