Page 1 of 1

Is GetTextOrDefault thread safe?

Posted: Thu Feb 12, 2004 10:27 pm
by pls
Can it be called from more than one thread?

I have a source component without a form that runs in its own thread. How can I handle strings in this component?

Posted: Fri Feb 13, 2004 5:37 am
by isiticov
Yes it is thread safe since it will only read from translations list. So you can use it in threads as well.

Posted: Fri Feb 13, 2004 9:14 am
by pls
Well, not exactly. tsiLang supports switching languages on the fly. I haven't checked, but I'm guessing that it changes the string lists.

Granted it's not a frequent operation, but experience with multi-threaded apps teaches me that the one you think is least likely is the one that get you.

++PLS