Reduce Memory In Windows Application?

Sep 24, 2010

I am working on VB.net multiuser application and when ever my any form open up memory rise and after some time out of memory exception is come.

I am working on VB.net 2008 and sqlserver 2005. I have use very much of shared object so second time it memory allocation is less, but how i can reduce it when form is close or not in use. can i use Garbage collector or Dispose and how i use this functionality ?

View 3 Replies


ADVERTISEMENT

What Is The Effective Way To Reduce The Memory Consumption

Apr 5, 2011

I found what seems to be an easy and effective way to reduce the memory consumption of my vb.net app. What I need to know is how "correct" or "proper" is the method I'm using for my application and what exactly is going on behind the scenes that I should worry about? I want to release memory every time a form closes. Here is how I reduce the required memory of my program:[code...]

View 7 Replies

Will Re-using Command Object Reduce Memory Usage

Mar 10, 2012

i wanna know for example if you have a few functions that actually creates a new sqlcommand in it and disposes them after use or is it better to have an sqlcommand at the main function and pass the sqlcommand in byref . and after using it. Juz clear the commandtext and the parameters.[code]

View 14 Replies

Reduce The Memory Usage Forcing To Garbage Collector To Collect With The Method?

May 1, 2012

I have a problem with an application, in this case I have a windows services. its function is generate reports depending of demand of our users.In some cases the memory usage of my windows services is to 2 gb of RAM. I disposed all objects that my application use . but the memory usage doesn't low.I tried to reduce the memory usage forcing to garbage collector to Collect with the method "GC.Collect"but it's not recommend because uses many time of CPU.Surfing on the internet I found a method named "SetProcessWorkingSetSize" that free memory usage correctly. http:[url]....but some cases my windows services named sapdkadm_procesoestandarejecucion.exe has some error message in event viewer is the next:

Faulting application sapdkadm_procesoestandarejecucion.exe, version 1.0.0.0, stamp 4f908fef, faulting module kernel32.dll, version 5.2.3790.4480, stamp 49c51cdd, debug? 0, fault address 0x0000000000027ded.

The real problem is that when this happens my windows services restart

View 3 Replies

.net - Identify Memory Leaks In Windows Application Using Sql Server 2005?

Dec 15, 2010

what is the best way to identify memory leaks from a vb.net 3.5 windows application.

View 1 Replies

How To Reduce The Size Of An Application

Feb 23, 2009

I have a system in VB.Net 2003, and that system takes a very long time to load. From the minute I click on the EXE, it takes one minute before the log in screen appear (P4 with 1GB RAM, no other application running). The size of the EXE is 33.2MB. I think the problem is the way I code the program, 1) I declare all the form as obj when I first load the system and I've got over a hundred forms. I try to load them as I need them but it does not work cause forms with sub form would give me an error. 2) I am using dataset as we know dataset is not very efficient but I don't know how else to connect to the database. Is there anything like ADODB in VB6?

View 2 Replies

Force The Application To Use More Cpu To Reduce The Calculation Time?

Oct 24, 2010

I have a background process that require about 1 min to come to completion.

All the data are in memory and it does not need to read the harddisk.

I have noticed that the CPU utilisation during the full minute is less than 20%

is there a way to force the application to use more cpu to reduce the calculation time?

View 13 Replies

Asp.net - Ways To Reduce Application Building/debugging Time?

Oct 2, 2010

My new office project is based on an MVP design and is in VB.NET (.NET 3.5), using multiple libraries (like EntLib, internal corporate framework, etc.). The number of DLLs used as references is so huge (almost 50) that when I try to build/debug the application in VS2008, it takes almost 3-4 minutes to get the website running successfully.

Wanted to know if there are any settings/areas which upon some modifications can help me reduce the build time? and what exactly can be the major reasons behind this long loading duration?

View 1 Replies

How To Get Memory Usage Of Process In Windows

Jan 16, 2012

Is there any way I can get the memory usage for all processes currently running on a machine in vb.net?

View 1 Replies

IDE :: Memory Leak In Windows Form?

Jun 14, 2011

I am a project analyst emrpesa software and recently in our systems. Net that are still
a minority began to System.OutOfMemoryException.

View 2 Replies

Memory Leak .NET 2010 Windows Service

Jun 9, 2011

We have constructed a windows service unde W2003 Server in vb.net 2010 to process certain database transactions. It should work 24/7 o the server. However, after 3/4 days it blocks the windows server operation since the memory usage is ever-increasing. After many revisions, we decided to place under "comments" all operational code, including all transactions to the SQl Server database and left just a kind of shell service that is doing no real work. Still, under these circumstances, the memory usage goes on increasing. Any idea how to prevent this from happening?

View 7 Replies

Out Of Memory Exception - Can't Create Windows Handle

Nov 26, 2011

I have searched other forums, google, etc. and have not find a solution. I am creating a VB.NET application using Visual Studio 2010. My application runs fine inside the IDE. Outside of the IDE, it crashes immediately with an OOM exception. I have compiled the program in both VS 2010 and VS2008. The outcome is always the same. I increased my Desktop heap to 12288 meg from 3072 meg thinking that was the issue, but the outcome is the case. Although the increase does improve my response in the IDE. The error is also being reported as related to mscorlib.dll; and my version is for 2.0 framework is 2.0.50727 and for 4.0 framework is 4.0.30319. I am running Windows XP/SP3.

View 13 Replies

Possible To View Every Process That Is Accessing Memory As Well As Windows Services

Jan 12, 2010

Is it possible to view every process that is accessing memory as well as windows services as well as how much thier accessing I want to make a program that can kill and block things accessing memory to block malicious programs to be able to delete the ie spyware that can't be fixed cause it adds it's self and locks it's self. From programs like spybot I can view the processes bit that's just wat windows registeres I need to look at eat is accessing memory.

View 6 Replies

Sockets + Windows Server 2008 = Memory Leak?

Jan 29, 2010

We have a small service shows continuous nonpaged pool bytes increase from the moment it is started. This is only on a 2008 server (all the others work fine).

The service basically connects a socket to a client to see if it's successful and then closes (most code omitted):

[Code]...

View 3 Replies

Windows Service: Out Of Memory Error : ImgEdit.Display

Aug 7, 2011

We have a VB windows service running on LocalSystem Account. This windows service uses Kodak Imaging Components for converting PNG to TIFF files . Service is throwing "Out of Memory Error" for the code ImgEdit.Display . I just converted this service to a normal console vb program .This program runs fine without any error .

View 1 Replies

Memory Allocated To The Application?

Jun 22, 2012

How do I find the memory or CPU used by my software?

View 8 Replies

Memory Leak In .net Application

Oct 19, 2011

I am working on a desktop application in VB.net 2005. The application contains a timer with an interval of 1 min. Each time the timer ticks, a set of functions gets executed, mostly database related.Initially the application runs fine. In processes(Task manager) the cpu usage goes to 100% every time the timer is invoked. But the timespan is around 1 sec(negligible).However as the time passes and after around 20 hours the time span of timer_tick increases to something like 20-30 secs. In this period cpu usage is 100% and the application does not responds. Gradually the time span of timer_tick increases to 1 min and the cpu uses gets stuck to 100% and the application does not responds.All objects are properly disposed. Moreover, this issue is with pentium 4 processors. The application runs fine on core 2 duo.[code]Many Select, Update and delete queries are performed in the timer.This problem occurs when I am using around 7000 records in database.

View 2 Replies

Memory Leak In .net Application?

Oct 19, 2011

I am working on a desktop application in VB.net 2005. The application contains a timer with an interval of 1 min. Each time the timer ticks, a set of functions gets executed, mostly database related.Initially the application runs fine. In processes(Task manager) the cpu usage goes to 100% every time the timer is invoked. But the timespan is around 1 sec(negligible).

However as the time passes and after around 20 hours the time span of timer_tick increases to something like 20-30 secs. In this period cpu usage is 100% and the application does not responds. Gradually the time span of timer_tick increases to 1 min and the cpu uses gets stuck to 100% and the application does not responds.All objects are properly disposed.Moreover, this issue is with pentium 4 processors. The application runs fine on core 2 duo.

View 1 Replies

Reading Memory From An Application Don't Own In C++

Jan 26, 2012

A couple of months ago, before I started learning C++, I made an application in VB.net that reads memory from an external program. This could be anything, from notepad to windows media player etc. I have been trying to find a way to do the exact same thing in C++, but to my suprise I can't find anything straightforward on the subject. All google comes up with is threads on several forums, where the general response is "Windows doesn't allow you to read from memory you do not own". But if it works in VB.net, it can work in C++ too.

[Code]...

View 1 Replies

Memory Leak In Program - Server (Windows 2003) Is Crashing?

Feb 5, 2010

working on an application which performs a set of operations on Active Directory based on an op code.The application was developed long back and has been working fine. I recently made few changes, which is causing the Server to run out of memory whenever the program is being run. I also modified the code to make sure that the variables being declared in each function are set to "Nothing" at the end of function so that the memory can be collected by garbage collector. To make sure, I'm also forcing garbage collection to take place at different parts of the program. But, I still continue to have the issue. The program is very big and hence I could not upload it.

The code retrieves a list of rows from a table with opcodes in it and based on operation code, it performs a set of tasks. The problem is that when it loops through each row in the table, the size of memory required by the program keeps increasing (> 1 GB) to the point where the Server (Windows 2003) is crashing. I have tried different profiling tools, but none of them have been able to detect any memory leaks in the program. I'm guessing that the resources are being held up and hence causing this issue.

View 7 Replies

Load Everything In Memory Upon Application Start?

Oct 9, 2009

I'm using VB.Net, and I have a set of data which I have to able to filter through fairly quickly.Basically, the program is like google sugest, but instead of a drop-down menu, I'm using a listbox. When a user enters a word, I compare the word using LINQ and filter those that contain the user's input. The data are all strings of variable length (from 0 to 200 characters, most on 150 character mark), and I have 240,000+ of this strings and counting- all stored in an XML file.

A colleague of mine told me that loading all of that to memory (using VB.Net's XML serializer plus collections of string/objects) is not practical, and would slow the 'startup' time of the program. I haven't finished building the program yet and I'm having second thoughts about continuing this path.

So, my question is: Should I continue with my current approach on the problem (which is load everything to memory on startup), or is there a better way of solving my dilemma?

View 6 Replies

Memory Leak In .NET Screenshot Application?

Oct 6, 2009

screenshot application I am developing that has a memory leak somewhere. The main code is as follows:

Public
Class Form1
Dim strPath As String = "C:windows empscreenshot.jpg"
Private Sub Main()

[code].....

The application runs from the system tray and a clickevent handler for the notifyicon control calls the Main() sub. The code calls OutlookEmail() which creates a new outlook mail object. The problem is that each time the notifyicon in the system tray is clicked the memory in use jumps up incrementally - about 3mb each time.

View 7 Replies

Memory Leak In A Very Large ASP.NET Application

Jun 17, 2012

I have a problem with a memory leak in a very large ASP.NET application. After about 24 hours of usage (sometimes a lot more) an OutOfMemory exception is thrown. Therefore I am trying to understand how managed memory works in .NET. When does an ASP.NET application throw an OutOfMemory exception? The server has a lot of RAM and there is always plenty of memory left when an OutOfMemory exception is thrown. I understand the difference between virtual memory and physical memory. How much memory does the W3WP process have to consume before an OutOfMemory exception is thrown? Is there a setting somewhere e.g. in the Machine.Config file? The ASP.NET process is never recycled.

View 2 Replies

Monitor RAM-memory Use Of Application Using A PerformanceCounter?

Jun 6, 2010

is it possible to monitor my RAM-memory use of my application using a PerformanceCounter? If so, I've been looking around on the web, but my knowledge about memory isn't enough to understand what precisely I have to use

View 1 Replies

What Is Loaded Into Memory When Application Starts

Mar 31, 2011

I have an application that uses many forms and a couple of modules. One module modMain contains my subMain that starts the application. In subMain an instance of frmMainMenu (insFrmMainMenu) is created with a menubar. As the user selects an item from the menu bar, an instance of a specific form is created (for example insFrmViewCustomer). That instance is opened with the ShowDialog method. When the form insFrmViewCustomer is closed, a statement in insFrmMainMenu disposes the instance of insFrmViewCustomer. modMain also contains many public functions and subs, as well as public variables. The other modules contain public functions and subs.

So, What is loaded into memory when the application starts?
And Is there a tool within Visual Studio that tells me the answer to the first question?

View 8 Replies

.net - Memory Usage In WPF Application - How To Track And Manage

Feb 12, 2012

I have a small-scale WPF application using VB.net as the code behind and I want to add certain features, but i'm concerned about performance.

1) My app interacts with a third party database to display "realtime" data to the user. My proposed method is to create a background worker to query a database every 30 seconds and display the data. I query about 2,000 records all long integer type, store them in a dataset, and then use LINQ to create subsets of observable collections which the WPF controls are bound to.

Is this too intensive? how much memory am i using for 2,000 records of long int? Is the background worker querying every 30 seconds too taxing? will it crash eventually? Will it interfere with the users other daily work (excel, email, etc)?

2) If an application is constantly reading/writing from text files can that somehow be a detriment to the user if they are doing day to day work? I want the app to read/write text files, but I don't want it to somehow interfere with something else the person is doing since this app will be more of a "run in the background check it when I need to" app.

3) Is there a way to quantify how taxing a certain block of code, variable storage, or data storage will be to the end user? What is acceptable?

4) I have several list(of t) that I use as "global" lists where I can hit them from any window in my application to display data. Is there a way to quantify how much memory these lists take up? The lists range from lists of integers to lists of variables with dozens of properties. Can I somehow quantify how taxing this is on the app or the end user?

View 2 Replies

VS 2010 Console Application Suddenly Using All Available Memory?

Oct 20, 2010

I ran my console app succesfully 30 minutes ago. Added a single line to write a message out to the console, recompiled and now, when it runs, it eats up all the available memory before bombing out with an OutOfMemory exception! I can see the Memory Usage in Task Manager just rocketing up!

What on earth could be wrong? I can reboot the machines I am running this on as they are live servers.

View 10 Replies

Memory Management - Reducing The Commit Size Of Application

Oct 15, 2009

I have an application which I've developed which queries Active Directory information and stores about 15 properties into a Datatable which is kept in memory. I need to decrease the amount of "Commit" memory it is setting aside. The application stays active in the system tray and allows for quick searching of information along with pictures for users. I have a class, which is able keep memory usage down pretty low. It runs on a timer every 10 seconds and listed below:

[Code]...

View 1 Replies

Size Of The Class Affect The Memory Usage Of The Application?

Jan 27, 2010

Does a the size of the class affect the memory usage of the application? is it better to break big classes into smaller classes or just group them up into one big class.

View 2 Replies

VB 2010 - Express Webbrowser.Dispose Does Not Release Application Memory

Apr 13, 2010

An application that has 3 Webbrowsers instantiated at design time navigates to webbrowser2 15 times every minute with a different webpage. Webbrowser2 is disposed of after each web page is received and processed. The size of the private application memory continues to grow as when the disposal was not instigated. The application memory grows to 1GB and then the program stops responding. Any suggestions? [Code]

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved