Click here to Skip to main content
15,922,139 members
Home / Discussions / C#
   

C#

 
GeneralWMEncoder saving file Pin
RockRock10-Jan-05 22:30
RockRock10-Jan-05 22:30 
GeneralFax Modem !!!!!!!! Pin
Mr.Cooper10-Jan-05 22:25
Mr.Cooper10-Jan-05 22:25 
GeneralInterop.Microsoft.Office.Core Pin
dabuskol10-Jan-05 22:21
dabuskol10-Jan-05 22:21 
GeneralXML from Dataset Pin
dotnetquery10-Jan-05 21:38
dotnetquery10-Jan-05 21:38 
Generalgarbage collector Pin
sianatia10-Jan-05 21:28
sianatia10-Jan-05 21:28 
GeneralRe: garbage collector Pin
Colin Angus Mackay11-Jan-05 0:20
Colin Angus Mackay11-Jan-05 0:20 
Generalrtf help Pin
Mohammad Daba'an10-Jan-05 21:27
Mohammad Daba'an10-Jan-05 21:27 
GeneralException messages in multilingual environment Pin
Ami Bar10-Jan-05 21:12
Ami Bar10-Jan-05 21:12 
My application logs its operation into a file.
As part of the application when an exception is thrown I am logging the exception.
The log shows the whole exception stacktrace and message in English and it’s fine.
However, when the application is installed on Russian Windows the exception messages (not the stacktrace) is logged in Russian.

How can I cause the exception to be written always in English?

I know that when I change the Thread.CurrentThread.CurrentUICulture to of the thread to CultureInfo.InvariantCulture just before the exception is thrown then the exception message is in English even on the Russian machine.

This solution forces me to change the CultureUI of the all the threads on creation and it’s not nice solution.

Ami

GeneralCrystal Report Image Parameter (C#) Pin
Craig G Fraser10-Jan-05 20:42
Craig G Fraser10-Jan-05 20:42 
GeneralStreaming Pin
RockRock10-Jan-05 19:30
RockRock10-Jan-05 19:30 
GeneralRe: Streaming Pin
Heath Stewart10-Jan-05 19:46
protectorHeath Stewart10-Jan-05 19:46 
GeneralPen Color Change Pin
ninja260510-Jan-05 18:57
ninja260510-Jan-05 18:57 
GeneralRe: Pen Color Change Pin
Heath Stewart10-Jan-05 20:23
protectorHeath Stewart10-Jan-05 20:23 
GeneralRe: Pen Color Change Pin
Robert Rohde10-Jan-05 20:26
Robert Rohde10-Jan-05 20:26 
QuestionMemory Leak in C# SDI App? Pin
pcJuice10-Jan-05 15:22
pcJuice10-Jan-05 15:22 
AnswerRe: Memory Leak in C# SDI App? Pin
Victor Campos10-Jan-05 18:18
Victor Campos10-Jan-05 18:18 
GeneralRe: Memory Leak in C# SDI App? Pin
Heath Stewart10-Jan-05 19:26
protectorHeath Stewart10-Jan-05 19:26 
GeneralRe: Memory Leak in C# SDI App? Pin
turbochimp11-Jan-05 2:22
turbochimp11-Jan-05 2:22 
GeneralRe: Memory Leak in C# SDI App? Pin
Heath Stewart11-Jan-05 4:50
protectorHeath Stewart11-Jan-05 4:50 
GeneralRe: Memory Leak in C# SDI App? Pin
turbochimp11-Jan-05 14:50
turbochimp11-Jan-05 14:50 
GeneralRe: Memory Leak in C# SDI App? Pin
pcJuice11-Jan-05 13:53
pcJuice11-Jan-05 13:53 
GeneralRunning a C# application from a network drive Pin
laptop_0110-Jan-05 15:09
laptop_0110-Jan-05 15:09 
GeneralRe: Running a C# application from a network drive Pin
turbochimp10-Jan-05 16:38
turbochimp10-Jan-05 16:38 
GeneralRe: Running a C# application from a network drive Pin
Heath Stewart10-Jan-05 19:31
protectorHeath Stewart10-Jan-05 19:31 
GeneralRe: Running a C# application from a network drive Pin
Heath Stewart10-Jan-05 19:35
protectorHeath Stewart10-Jan-05 19:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.