Does the StiWebViewer localization is thread safety?

Stimulsoft Reports.WEB discussion
Post Reply
AlexanderZaslon
Posts: 1
Joined: Tue Feb 05, 2013 9:29 am

Does the StiWebViewer localization is thread safety?

Post 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 :)
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: Does the StiWebViewer localization is thread safety?

Post by HighAley »

Hello.

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

Thank you.
Post Reply