473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

How to reduce the memory consumed by my application

Dear All,
am working in a C#.net windows applpcation. it is consuming too much memmory . how to reduce the memmory usage by the application. We are using an Elegent ribbon software for the user interface. in the login time itself it is taking a huge memory. anybody please help us to solve this problem. and please give me the idea how to deal with the Ngen.exe and GAC in the application?
Thanks in advance
Feb 12 '10 #1
2 1981
tlhintoq
3,525 Expert 2GB
Memory:
I'm sorry... The volunteers here can really only help you with problems that you narrow down, and not redesign your software archetecture. Other than basic coding suggestions like "make sure you dispose of every object you create", there is no way anyone can tell you where your memory is being consumed. For all we know there is a loop making 10,000 sign-in objects when you need only 1.

GAC:
Explaining the entire GAC is far beyond the scope of a thread. There are entire books on the subject. But it can't hurt to start at MSDN.
http://msdn.microsoft.com/en-us/libr...sz(VS.71).aspx

Ngen.exe
Go to the source: Microsoft

Please don't be offended when I say "If you're having this much trouble in so many vital areas then this project may be beyond what your company can do." Maybe it's time to tell your boss that you don't have the training to complete this project. It might be the nudge (s)he needs to get you some more training which can only further your career.

Either that or your company needs to quit underbidding qualified coders on projects that they don't have the expertise to handle - because it is unfair to their staff (you) to expect results they aren't prepared to produce. Nobody needs that kind of pressure placed upon them. It just makes people miserable.
Feb 12 '10 #2
sashi
1,754 Expert 1GB
Hi princeka47,

I often try to release unused resources from the memory as often as possible to overcome such a situation.

Perhaps you should look at;
1. Garbage Collection
2. Implementing Constructor & Destructor
Feb 13 '10 #3

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

Similar topics

2
by: Mike Peretz | last post by:
I am trying to optimize my C# program, but no matter what I try the application keeps eating memory. I verified all the references and even got special software to count references. I made sure all...
2
by: shyamal | last post by:
I want to display memory content using C++ on LINUX. For example, the user may ask to display 256 bytes from 0x1000ff00. The problem is , if any location is invalid, the program will coredump...
18
by: Tron Thomas | last post by:
Given the following information about memory management in C++: ----- The c-runtime dynamic memory manager (and most other commercial memory managers) has issues with fragmentation similar to a...
16
by: Justin Lazanowski | last post by:
Cross posting this question on the recommendation of an I have a .NET application that I am developing in C# I am loading information in from a dataset, and then pushing the dataset to a grid,...
6
by: Andrzej | last post by:
Used to read newsgroup for answers, now have to ask for them as well. I have an application (C#, .NET 1.1) that connects to local db on MSDE 2000 SP3a (using ADO from MDAC 2.71) on one side and...
8
by: Adrian | last post by:
Hi I have a JS program that runs localy (under IE6 only) on a PC but it has a memory leak (probably the known MS one!) What applications are there that I could use to look at the memory usage of...
20
by: mariano.difelice | last post by:
Hi, I've a big memory problem with my application. First, an example: If I write: a = range(500*1024) I see that python process allocate approximately 80Mb of memory.
2
by: goRide | last post by:
Hi, i have a small application setting in tray. The main form is hidden but has a media player component on it which plays a url link (radio tuner...). Anyway, my application take about 35MB of...
5
by: prakashdehury | last post by:
Hi I am in the process of optimizing an .Net application that consumes lot of memory for its mathemetical processing and calculation. Can any one pls suggest me how to check the memory...
1
by: beena | last post by:
Hi All, Is there a way to calculate the maximum total memory ever used by the instance? Is db2mtrk the answer ... especially the high watermark option..... If I add up all the values......Will ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.