当系统文化更改为CultureNotFoundException时,应用程序将崩溃. [英] Application gets crashed when system culture is changed giving CultureNotFoundException.

查看:124
本文介绍了当系统文化更改为CultureNotFoundException时,应用程序将崩溃.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Winforms应用程序,有一个WPF文本框和一个Winforms文本框.我已经安装了不丹语言环境(Dzongkha),它的键盘 和字体.当应用程序运行时,我将系统区域性从[zh-CN]更改为[dz-BT](Dzongkha- Bhutan),当我尝试在WPF文本框中键入内容时,应用程序崩溃了,出现了文化不支持的错误.我尝试创建自定义 文化,但这对我也不起作用.我对如何解决这个问题一无所知.任何帮助将不胜感激.

I have a Winforms application which has a WPF textbox and a Winforms textbox. I have installed a Bhutan locale (Dzongkha), its keyboard and fonts. When the application is running and I change the system culture from [en-US] to [dz-BT](Dzongkha- Bhutan), the moment I try to type something in WPF textbox, application gets crashed, giving a Culture not supported error. I have tried creating custom culture, but that didn't work for me either. I am clueless as to how to go about this problem. Any help would be really appreciated.

预先感谢.

推荐答案

Hello C.Mitt,

Hello C.Mitt,

>> ,应用程序崩溃,出现文化不支持的错误

>> , application gets crashed, giving a Culture not supported error

使用当前信息,很难说出是什么原因导致了此异常.该错误有详细说明吗?如果有,请与我们分享.

With current information, it is hard to tell what part causes this exception. Does this error has a detail description? If has, please share it with us.

>>我曾尝试创建自定义文化,但这对我也不起作用.

>> I have tried creating custom culture, but that didn't work for me either.

它还会引发错误吗?

以下链接可以帮助调试应用程序崩溃:

Here are links which could help debug an application crash:

使用转储文件调试应用程序崩溃并在Visual Studio中挂起

如果您处于产品环境中,请参考此链接:

http://blogs.msdn.com/b/msdnts/archive/2006/11/24/how-to-debug-application-crash-hang-in-production-environment.aspx

此致.


这篇关于当系统文化更改为CultureNotFoundException时,应用程序将崩溃.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆