Shared Variable... Help me please...

  • Thread starter Thread starter LB
  • Start date Start date
L

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!
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top