J
james
Hi all,
We've got a VB.NET application which is localized.
I would like to make sure that any exceptions are logged to our
application's log file in English, not the currently selected language.
The problem is that by the time we get into the exception handling
routine (via the try...catch...end try construct), the exception has
already been created, and its message etc. is in the current culture.
For example, we get the following ex.message:
System.NullReferenceException: La référence d'objet n'est pas
définie à une instance d'un objet.
at Capture.clsCapture.ReadINI(CaptUDT& mini) in
C:\p4\Capture\Capture1.vb:line 348
While the exception type (System.NullReferenceException) is helpful to
us - as it's still in English - we really need the message in English.
Any thoughts?
Thanks,
James
We've got a VB.NET application which is localized.
I would like to make sure that any exceptions are logged to our
application's log file in English, not the currently selected language.
The problem is that by the time we get into the exception handling
routine (via the try...catch...end try construct), the exception has
already been created, and its message etc. is in the current culture.
For example, we get the following ex.message:
System.NullReferenceException: La référence d'objet n'est pas
définie à une instance d'un objet.
at Capture.clsCapture.ReadINI(CaptUDT& mini) in
C:\p4\Capture\Capture1.vb:line 348
While the exception type (System.NullReferenceException) is helpful to
us - as it's still in English - we really need the message in English.
Any thoughts?
Thanks,
James