Home All Groups Group Topic Archive Search About

Shared Variable... Help me please...

Author
10 Feb 2006 10:28 PM
LB
Hello,

Here the situation:

I have 2 Web services which call each one a DLL.  Each one of these dlls
uses a shared variable to read and write in a file XML (the same one).
The problem, when file XML is updated by one of the applications, the other
is not refreshed even if I make a ' xmlDocument.load(path) '.

The 2nd application continues to use its old version.  The problem is that
my 2 applications crush file XML mutually and the data are erroneous.

Moreover (perhaps this is not significant, I do not know), but a '
ReaderWriterLock' is used for this file XML.

I thus created a new DLL which declares the variable shared and my 2 Dlls
call this new DLL.  The result is completely the same one...

Is this due to the Service Web??  What to make??  Thank you!

Author
11 Feb 2006 9:20 AM
Cor Ligthert [MVP]
LB,

In my opinion will this never work.

A write to a database of a XML file and the removing of the old one secure,
needs so much time, that you never can predict the results.

However just my idea.

Cor