F
Flare
H
I have a dll lib wich contains a static method to read and return a result
from a xmlfile.
But is possible that this dll could be called at the same time from muliple
threads. Is this a problem when its readonly access to the file?
I mean do i need some kind of lock on the method so only one thread can
access it? My thougt was that i would have a problem if the methid should
read from the xmlfile from 2 threads
The method goes like this....
private static string GetUrl(string section, string asmxfile)
{
string CompleteUrl = null;
try
{
XmlDocument m_doc = new XmlDocument();
m_doc.Load("webservices.xml");
XmlNode node_webserviceurl =
m_doc.DocumentElement.SelectSingleNode("//config/webserviceurl");
.....
.....
.... etc.
}}
Best reagards
Anders
I have a dll lib wich contains a static method to read and return a result
from a xmlfile.
But is possible that this dll could be called at the same time from muliple
threads. Is this a problem when its readonly access to the file?
I mean do i need some kind of lock on the method so only one thread can
access it? My thougt was that i would have a problem if the methid should
read from the xmlfile from 2 threads
The method goes like this....
private static string GetUrl(string section, string asmxfile)
{
string CompleteUrl = null;
try
{
XmlDocument m_doc = new XmlDocument();
m_doc.Load("webservices.xml");
XmlNode node_webserviceurl =
m_doc.DocumentElement.SelectSingleNode("//config/webserviceurl");
.....
.....
.... etc.
}}
Best reagards
Anders