Page 1 of 1

Does the StiWebViewer localization is thread safety?

Posted: Tue Feb 05, 2013 9:54 am
by AlexanderZaslon
Can you confirm that the StiLocalization which is used for localizing of report Viewer is thread safety. I am asking because have looked through this code via reflector and found that the StiLocalization stores translation in categories collection which is actually static field, and this collection is cleared each time when the Viewer controls tree is built and the prevLanguage is different from current.

It seems we can run into situation when two requests with different cultures are trying to build reports simultaneously and while one of them is using this categories collection another one clears it.

I hope I am wrong :)

Re: Does the StiWebViewer localization is thread safety?

Posted: Wed Feb 06, 2013 8:08 am
by HighAley
Hello.

This code is used by many our customers. There was no problem with it.

Thank you.