C#WinForms:多语言应用程序的内存使用情况 [英] C# WinForms: Memory Usage on multi lingual app

查看:76
本文介绍了C#WinForms:多语言应用程序的内存使用情况的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我将在我的应用程序中支持5种语言。

而且我不确定我的内存使用量是否会增加如果我将所有图像资源放在资源文件中。


目前图像为25MB /语言


当我在资源文件中放入所有资源时会消耗更多内存吗?


提前致谢。



-dantz

Hi everyone,

I will be supporting 5 languages in my app.
And I''m not sure if my memory usage will increase a lot if I put all the image resources inside the resource file.

Currently the images are 25MB / language
My memory usage is 600MB currently.

Will it consume more memory when i put in all resources in the resource file?


Thanks in advance.


-dantz

推荐答案

你的*内存*用量是600mb?这不仅仅是Adobe Photoshop。

应用程序的frak是什么?

一台2gig机器,带有1.3的O.S.几乎无法运行它。


您可以使用特定语言的资源文件,这样当您的安装程序运行该语言时,您就可以获得这些资源。

如果您使用一种语言(默认/英语)构建表单,然后更改设计器中的语言(比如德语),然后导入图形,它应该是自动发生的。我只做了几个像这样的应用程序(英语,西班牙语),但是一旦我对它有感觉,它就非常轻松。
Your *memory* usage is 600mb? That''s more than Adobe Photoshop.
What the frak is the application for?
A 2gig machine with 1.3 for the O.S. will barely be able to run it.

You could do language specific resource files so that when your installer runs for that language then you get just those resources.

If you built a form in one language (default/English), then changed the language in designer (say to German), then imported your graphics, it should have happened automatically. I''ve only done a couple applications like this (English, Spanish) but it was pretty painless once I got the ''feel'' of it.


内存大致在此左右尺寸400-600mb ...

它是一个处理Flash游戏的游戏管理器

游戏管理器里面有10个图像盒,它有定时器通过改变图像来做动画。其中1个图片框每隔50ms间隔更改一次图像,而其他图片则使用100ms间隔。


要更改语言,触发器将在运行时间内触发。

我有类似系统菜单的东西,用户可以在5种可用语言中选择2种语言。然后,当他完成选择语言后,它将反映在主表单上,其中有一个按钮可以在2种语言之间进行更改。


如果没有这种功能我怎么能不支持增加我的内存使用量?


另一个问题是可以在不改变代码的情况下进行支持吗?/我的意思是如果我从现在添加一种语言5可以做到这一点不改变任何源代码?


TIA


-dantz
The memory is roughly around this size 400-600mb...
It is a game manager that handles flash games
Inside the game manager got 10 picturbox that have timer to do animation by changing images. 1 of the picturebox change images every 50ms interval of the timer, while others are using 100ms interval.

For changing of language, the trigger will be during run-time.
I have something like a system menu where the user can choose 2 language between the 5 available languages. Then when he finish choosing the languages it will be reflected on the main form where there is a button to change between the 2 language.

How am I suppose to support these kind of feature without increasing my memory usage?

Another question is it possible to make the supporting without changing the code?/ I mean if i add one more language from the present 5 is it possible to do it by not changing any source code?

TIA

-dantz


我做了一个类似的应用程序那个,我用不同语言的文本使用XML',但我不明白,你使用的是图像而不是文字,并希望...翻译。图片中的文字?如果就是这样那么tlhintoq说只是用不同语言的图像制作不同的资源文件然后根据语言使用资源文件(就像我用XML做的那样 - 很容易)
i made a application like that, i used XML''s with text in different languages, but i dont understand, you are using images instead of text and want to.. "translate" text in images? if thats the way then as tlhintoq said just make different resource files with images in different languages and then use the resource file according to language (the same way i did with XML''s -- was easy)


这篇关于C#WinForms:多语言应用程序的内存使用情况的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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