473,663 Members | 2,933 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# WinForms: Memory Usage on multi lingual app

71 New Member
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
Jan 15 '10 #1
16 2676
tlhintoq
3,525 Recognized Expert Specialist
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.
Jan 15 '10 #2
dantz
71 New Member
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
Jan 15 '10 #3
vishal1082
92 New Member
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)
Jan 15 '10 #4
tlhintoq
3,525 Recognized Expert Specialist
Vishal: Nobody said anything about translating text to images, except you.

Datz: You could change the design from having everything in memory/resources to having your images in directories within the application directory. Then change languages based on what directories exist. To add a language you just add a subdirectory with your images and maybe a file of all the text used in messages.
Jan 15 '10 #5
vishal1082
92 New Member
but i dont understand, you are using images instead of text and want to.. "translate" text in images?
i said that, i didnt *understand* what he exactly wanted to do.. it was a guess sheesh..
Jan 15 '10 #6
Frinavale
9,735 Recognized Expert Moderator Expert
What I don't understand is why having multiple resources for different languages is going to affect your memory anyways??

When you're using an application you just want it to be displayed in the language/culture that you are comfortable with. You don't really care about the other languages/cultures.

Resource files make this possible. Only the resources required for the application in the user's language/culture is used (unless the resource can't be found in that language/culture in which case it falls back to the default language/cultural resource). It doesn't make sense to load 5 resource files when the user is only interested in viewing the application in their language/culture.

The resource files may take up space on the hard drive but I wouldn't have thought that they effect memory...?

If you're unfamiliar with resources in .NET check out Resources in Applications, Resources in .resx file format, Creating Resource Files, Packaging and deploying resources, and Satellite Assemblies...

-Frinny
Jan 15 '10 #7
tlhintoq
3,525 Recognized Expert Specialist
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.
To me I think the OP is creating a language training game. Pick English and Spanish to learn a new language. Pick Gernan and French. Etc. Which would explain why he has to load so much data and not just a single language installation.

Dantz: Am I guessing correctly?
Jan 15 '10 #8
dantz
71 New Member
Thanks for all the replies

To me I think the OP is creating a language training game. Pick English and Spanish to learn a new language. Pick Gernan and French. Etc. Which would explain why he has to load so much data and not just a single language installation.
tlhintoq: Nope it is not a training game. The reason for supporting 2 language is to let users choose which language they are comfortable with.
(I am just actually following a user requirement. If I will be deciding on the language I will just use the local language where my application will be shipped)
Jan 18 '10 #9
dantz
71 New Member
...but i dont understand, you are using images instead of text
vishal1082: I am using images because the display for Chinese and Japanese text doesn't look nice..That was my solution to deal with those double byte characters because the UI must look really nice (~even though i know resources file size will suffer)
Jan 18 '10 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2105
by: dc | last post by:
Product Announcement: Multi-Lingual web site using Nested Templates and Menus http://www.decloak.com/Products/Dreamweaver/NestedTemplates/ You can see the TONGUES of FIRE demo web site at http://www.decloak.com/Products/Dreamweaver/NestedTemplates/Demos/NestedT_Tongues_of_Fire/ This name is from the BIBLE, "...every man heard them speak in his own language." Acts 2:1-12 NIV
0
1002
by: THY | last post by:
anyone know a good way to create a multi-lingual website in ASP.Net ? thanks
11
2194
by: Steve Smith | last post by:
I have written a winforms application that launches approximately 150 threads with Thread.ThreadStart() Each thread uses CDO 1.21 to logon to a different Exchange mailbox and send/receive a number of mail messages, reporting back to the UI thread through the use of a Queue object. When all messages that are expected have been received, each thread sends a final update to the UI and the method should exit, which should terminate the...
5
3823
by: brian.wilson4 | last post by:
Our group is currently comparing winforms vs webforms.....app is Corp LAN based - we have control of desktops.....Below is pros and cons list we have come up with - if anything strikes you as untrue or you would like to add - please comment - thanks..... Rich Client PROS 1. User experience (* indicates feasible on web with AJAX) - a. Single, unified application experience b. Windows/Office-like look and feel - i.Tabs - drag and drop...
2
1643
by: Dylan Parry | last post by:
Hi folks, I was wondering if anyone here has experience of making Web applications that are multi-lingual? The solution that I have in my head is to have several "language" files as resources so that there are no hard-coded strings within my class library, but I'm not sure how to start. Is there a recommended technique for doing this, or maybe some tutorials that show some simple implementations of such a system?
17
5698
by: Frank Rizzo | last post by:
Hello, I've compiled my app for AnyCPU setting in vs2005. Then I tried the app on both 32-bit Windows 2003 R2 and 64-bit Windows 2003 R2. The memory usage of the application when working on the same data set were unbelievable (the data is from Task Manager) : 32-bit Windows 2003 R2 Mem Usage: 481,400k Peak Mem: 583,020k
9
4173
by: deerchao | last post by:
I'm developing a WinForms application. It slowly eats up memory, one client reported that it took 200MB or more, and finnaly crashed. I myself noticed it's common to use up 30MB memory, but if I minimize it (all the Forms will Hide, only a NotifyIcon is shown at the System Notification Area), the memory usage comes down to 8MB immediately. After that, even if I show the Forms again, it uses only 8MB memory. Do I have another way to...
13
2847
by: Ilias Lazaridis | last post by:
How to detect memory leaks of python programms, which run in an environment like this: * Suse Linux 9.3 * Apache * mod_python The problem occoured after some updates on the infrastructure. It's most possibly caused by trac and it's dependencies, but several components of the OS where updated, too.
1
1206
by: Jonathan | last post by:
Before I start creating a new asp.net website, is there a standard way of making it multi-lingual? For example, rather than type in body text to a page, should I rather refer by number code to a row in a language table from which to pull the appropriate text? Same with menu elements etc? I am thinking of having a drop-down on the top-right like MS does with Language and country flag too.
0
8348
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8778
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8549
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8636
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5660
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4185
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4351
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2764
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2003
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.