Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2007 Oct : Is TXMLDocument treadsafe?
| Subject: | Is TXMLDocument treadsafe? |
| Posted by: | "Steen Kastor Albrechtsen" (k..@has.dk) |
| Date: | Mon, 1 Oct 2007 23:38:05 |
Hi
I am processing some huge XML-files (I am only reading them) and uses
TXMLDocument for that.
I am sending the processed info on to a COM server.
I want to showmodal a TForm with info about the progress and considers to
convert my method into a TThread.
I am a bit new to this TThread stuff:
I know, that I shall use the Syncronize for the form visual update.
1) Can I access simple global variables, when I know, that no other treads
access these vars?
2) Can I access the COM server from the tread.
3) Is it safe to use a TXMLDocument in the tread?
4) Any other problems with this scenario?
Thanks in advance
Steen