Beta UTF-8 region setting with Chinese language displays DnaLibrary AutoOpen "Memory" warning #586
Replies: 1 comment 1 reply
-
Wow - that is quite a story, and a very detailed write-up of the problem. I can't imagine how you found it and got to these details. Certainly "Send a Frown" inside the Excel Feedback page (you can point here for the issues details) - I think the guys at Microsoft who are responsible for the Office add-in work are in Beijing, so if your issue gets routed there you have some hope of attention. I imagine something is going wrong with the way COM add-ins are registered and then loaded of-the-fly by Excel-DNA. During that So there might be a bug in the .NET registry classes, in the Windows registry support, in the Office registry redirection, in the Windows COM APIs or in Excel's loading of the add-in. And if I set the Chinese system and display language, I probably can't drive my computer or debugger very far. Maybe one might start with some Process Monitor logging to track the registry reads and writes. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello there!
We have an add-in added to Excel and when we open Excel under the conditions described below (Steps to reproduce), a "Memory" warning is displayed and then we cannot use the available functions of our add-in.
We create a simple ClassLibrary project to reproduce our problem in Visual Studio 2022 (having Visual Studio in Chinese and having the "Steps to reproduce").

Class1.cs
'namespace MyClassProject
{
}`
MyClassProject.csproj

We debug the code and when the debugger reaches ExcelComAddInHelper.LoadComAddIn(_comAddIn); the "Memory" warning is displayed as below picture.

Click on Continue and the following Exception is raised.

This behavior occurs when we enable "Beta: Use Unicode UTF-8 for worldwide language support" option in the Region Settings and set the Windows language and Office language to Chinese (See "Steps to reproduce").
Steps to reproduce:
Set the Regional format to "Chinese (Simplified, China)", as below picture

Set the Region setting to use "Beta: Use Unicode UTF-8 for worldwide language support", and the Current system locale option as "Chinese (Simplified, China), as below picture

Set Excel as Chinese language in the File-> Options->Language -> Office display language as Chinese (Simplified), as below picture

Set Windows Display as Chinese

Restart Windows 10 system
Run the simple ClassLibrary project, you will see the "Memory" warning.
We appreciate your help with this issue.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions