473,396 Members | 2,010 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,396 software developers and data experts.

Force GC to run on another application

Hello,

I want to know how I can force a GC to run outside the
application. For example. App1 which is where I want the
GC to be collected. I don't want to run GC.Collect within
this application. I want to create App2 which will call
GC.Collect within App1 some how.

The main reason to force the GC collection is that GEN2
collection is growing very fast and I adventgually get
the OutOfMemory exception. When I force the GC.Collect on
GEN2 in App1 then every thing works. But I don't want to
control it via App1 because if in the future I want to
switch this off then all I have to do is uninstall App2.

Please help,
Nov 17 '05 #1
1 2217

"BuddyWork" <an*******@discussions.microsoft.com> wrote in message
news:06****************************@phx.gbl...
Hello,

I want to know how I can force a GC to run outside the
application. For example. App1 which is where I want the
GC to be collected. I don't want to run GC.Collect within
this application. I want to create App2 which will call
GC.Collect within App1 some how.

The main reason to force the GC collection is that GEN2
collection is growing very fast and I adventgually get
the OutOfMemory exception. When I force the GC.Collect on
GEN2 in App1 then every thing works. But I don't want to
control it via App1 because if in the future I want to
switch this off then all I have to do is uninstall App2.

Please help,


You can't do this, aand there is no need to call GC.Connect, it will be
called automatically when Gen2 grows.
If you get OutOfMemory exceptions it's because the GC cannot remove objects
from the heap, that means your application has a bug. Only thing you can do
is fix it.

Willy.
Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Matthew Sims | last post by:
Is it possible to force a download without using the readfile function? My website setup consists of my server that serves the web pages plus a high-speed file server elsewhere on the internet...
6
by: Ganesh | last post by:
Is there a utility by microsoft (or anyone) to force garbage collection in a process without have access to the process code. regards Ganesh
2
by: Raquel | last post by:
FORCE APPLICATION command is valid only at the 'instance' level. Why is this so? An instance may contain many databases. So, what command do I give if I want to force applications from a particular...
0
by: lauren quantrell | last post by:
In Access, is there a simple way to determine if another Access application is running and then force it to quit? Example App1 is running. It checks to see if App2 is running. If App2 is...
2
by: Gidi | last post by:
Hi, I saw that someone asked that question here before, and i tried one of the answer that was gaven (Bob's tricks and tiips), The suggestion there was using the ImoprtDll and tried to import...
2
by: Hardin | last post by:
I have an app that uses the sessionID to track user navigation and usage through the application. It works fine except in one case: There is a point in the application where I want to "close"...
5
by: annagel | last post by:
I am looking for a way to force a Tkinter window into focus on a system level. I know the force focus method should bring one window of my application into focus, but it seems I need to have some...
2
by: comp.lang.php | last post by:
class ReportGenerator { function ReportGenerator() {} /** * Generate the HTTP headers necessary for this file type. Can be called statically *
1
by: Daniel | last post by:
how to force a .net application to use .net 2.0 ? this windows service is about 4 years old and im pretty sure is using .net 1.x runtime. Is there soem setting in the installer that says to use...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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...

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.