Hello.

We're using MITK to load DICOM files and we want to load series in 
separate threads.
Unfortunately, there is a problem with a global locale.

MITK set up neutral locale before loading and restores user locale 
afterwards.
GDCM library that actually loads DICOM is using std::stringstream to 
parse some values.
To do it properly, global locale must be neutral (so std::stringstream 
will also use neutral locale) but sometimes it isn't.
So values like "0.637" are parsed like 0.000 because decimal separator 
is "," in user locale.
I suspect that this happens because the main thread restores user locale 
before thread that reads DICOM finishes its work.

Does anyone encounter this problem?
Is there some known solution to it?

I know about _configthreadlocale() function that allows you to set up 
locale per thread basis but as far as I know it's platform-dependent, so 
we can't use it.

Regards, Alex.


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to