G
Guest
I have an application that needs to be able to run in both english & Hebrew.
(Regardless of the culture set in the windows Control Panel).
So I set CurrentThread.CurrentCulture & CurrentThread.CurrentUICulture to
the cutlure I want at the beginning of the program.
Then I found, To my suprise that the threads I create in the application
(and the Thread pool threads) still have the original cultures.
Does this mean that every time I want to use a thread I need to manually set
the CultureInfo at the beginning of the Thread function?
Is there some global setting of the Application that allows me to set the
default CultureInfo of the current instance of the application?
I REALLY would like to avoid having to define some static variable holding
the application culture and use it EVERYWHERE...
Thanks,
Nadav
PS, why is the Culture settings a thread setting?
I would think it will be very confusing if different threads would write to
the GUI but use different Culture settings.
In what cases do we need different cultures in different threads of the same
application?
(Regardless of the culture set in the windows Control Panel).
So I set CurrentThread.CurrentCulture & CurrentThread.CurrentUICulture to
the cutlure I want at the beginning of the program.
Then I found, To my suprise that the threads I create in the application
(and the Thread pool threads) still have the original cultures.
Does this mean that every time I want to use a thread I need to manually set
the CultureInfo at the beginning of the Thread function?
Is there some global setting of the Application that allows me to set the
default CultureInfo of the current instance of the application?
I REALLY would like to avoid having to define some static variable holding
the application culture and use it EVERYWHERE...
Thanks,
Nadav
PS, why is the Culture settings a thread setting?
I would think it will be very confusing if different threads would write to
the GUI but use different Culture settings.
In what cases do we need different cultures in different threads of the same
application?