Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Thread safe ?

Status
Not open for further replies.

Dachyon

Programmer
Nov 4, 2002
32
0
0
NZ
Hi everyone,
I have an XMLDOM (MSXML4) implemented using the CoFreeThreadedDOMDocument4 coclass. It is updated by multiple processes. Can anyone tell me whether this coclass serializes access ?
In other words, could I potentially read from the DOM while it is being updated by another process, and get invalid data ?

Note : I will also POST this question to the COM/DCOM forum, so my apologies for duplicating :)

Mny tnx
dachyon
 
I wouldn't assume that it's thread-safe. If it's being updated by another thread, then all the internal object references are being changed at the same time you're trying to read -- maybe you'll get consistent results, maybe you won't.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top