473,386 Members | 1,819 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,386 software developers and data experts.

WinForm App Uses More Memory When Deployed Through Installer

Hi,

We have a small Winforms app here that simply unpacks a zip file and transfers data from the files to a database.

When used through Visual Studio, or directly from the executable in the bin directory, or by directly using the executable from the Publish folder, the program builds up some memory usage and then releases it. Does this repeatedly.

When used via the installed deployment (i.e. when you use the .application file to install under %USER%/Local/Apps) the program never seems to release its memory, causing the memory usage to gradually increase until it uses all PC memory.

Does the VS supplied installer cause an app to do something differently with its resource allocation?

I am using VS2008 SP1, on Win7 SP1.

Any ideas would be appreciated.

Regards,
Rob.
Apr 29 '10 #1
2 1646
Plater
7,872 Expert 4TB
Are you doing any work with COM components?
Do you manually call the garbage collector ever?
Apr 29 '10 #2
No COM objects as far as I can tell, but the program does use multithreading to break up the reading of data from the files.

We don't deliberately call the garbage collector, although we did try this once thinking that the GC was not doing its job. However, since there are no guarantees that the GC will actually run even if you code a call to it, we were unable to determine if it is a GC problem or not. So we took the calls back out.

It appears to be this windows installer that causes the issue, so I have told our IT guys to just manually copy the files across instead of using the setup.

Regards,
Rob.
Apr 29 '10 #3

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

Similar topics

0
by: rmike | last post by:
Hi, I have deployed a .NET winform application using a web server. The application has some dependencies on a 3rd party assemblies. 1) If I have those assemblies dlls in a client's GAC, the...
1
by: Pramod Thewarkar | last post by:
Hi, I have deployed my winform application on iis server in a virtual directory. On the start of my application, it is reading some information from the config file (app.config). When i am...
6
by: Just D. | last post by:
Hi All, I have a question. I need to load some EXE file into memory and then find a way how to run it from the memory without saving to disk. I know that it was possible in C++ to execute any...
8
by: Sunil Menon | last post by:
Dear All, We are developing applications in ASP.Net...in one of our applications we would like to use a GridControl...we have tried to use a Server-Side Grid control but found the speed to be an...
3
by: Chris Dunaway | last post by:
A quick scan of the group did not immediately reveal an answer to my questions so here goes. First let me describe my app and then I'll ask the questions. I am writing a Windows Forms App (not...
1
by: Moe | last post by:
I have a winForm control that contains an openFileDialog. I am using this control in a webForm by enbedding it using an <object> tag. I need to access some information about the file on the client....
2
by: J. Clay | last post by:
Developing in VS 2005 I have WinForm app that utilizes several class objects and is databound to a couple of objects. One of the classes uses a timer to query an in memory database every second...
14
by: Monty | last post by:
Hello, I have created a solution which has both a web UI and a winform UI, the latter is just for administrators. The Web UI (a Web Application Project) and the winform project both...
4
by: John | last post by:
Hi I have a winform app that uses a timer to periodically run a number of queries on an access db and write the results in a rich text control on the form. I have two questions; 1. If I am to...
0
by: kzWS08 | last post by:
Hello... I have a quick query. Hope someone can help. I have a winform application which uses the Arial Unicode MS font. Is it ok to include the *.ttf font file in my installer? Are there any licence...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...

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.