.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Garbage collection .NET

4 REPLIES 4
Reply
Message 1 of 5
dmarcotte4
228 Views, 4 Replies

Garbage collection .NET

Is there a way to keep my programs in memory, alive and waiting for my keystroke?

I know there is a heavy startup cost for .NET when I netload and launch my programs. My problem is that if I walk away from my desk for 20 minutes or so or don’t use one of my programs for a while they get garbage collected and I have to wait until they are re jit’ed back into memory. Ram is cheap time is expensive

C# .NET 2.0
4 REPLIES 4
Message 2 of 5
Anonymous
in reply to: dmarcotte4

I do not think a loaded program (especially the ObjectARX program made
through .NET API) would be "Garbage-Collected" just because of being idle
for a certain period.



wrote in message news:5028734@discussion.autodesk.com...
Is there a way to keep my programs in memory, alive and waiting for my
keystroke?

I know there is a heavy startup cost for .NET when I netload and launch my
programs. My problem is that if I walk away from my desk for 20 minutes or
so or don't use one of my programs for a while they get garbage collected
and I have to wait until they are re jit'ed back into memory. Ram is cheap
time is expensive

C# .NET 2.0
Message 3 of 5
Anonymous
in reply to: dmarcotte4

What you're describing isn't really 'garbage collection'.

It's virtual memory management.

Application code and data is subject to being paged out
to virtual memory whenever physical memory is needed
for other things.

However, that should not happen because you walked
away from your computer and left it idle with no memory
consuming operations running.

It will happen if you are working on a large drawing, or
doing anything else that involves memory consumption,
and there is little that you can do about that other than
to get more RAM.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006
http://www.acadxtabs.com

wrote in message news:5028734@discussion.autodesk.com...
Is there a way to keep my programs in memory, alive and waiting for my keystroke?

I know there is a heavy startup cost for .NET when I netload and launch my programs. My problem is that if I walk away from my desk for 20 minutes or so or don’t use one of my programs for a while they get garbage collected and I have to wait until they are re jit’ed back into memory. Ram is cheap time is expensive

C# .NET 2.0
Message 4 of 5
Anonymous
in reply to: dmarcotte4

MSIL is JITted only the very first time it is executed; the results (native
code) are cached to disk.

Dan

wrote in message news:5028734@discussion.autodesk.com...
Is there a way to keep my programs in memory, alive and waiting for my
keystroke?

I know there is a heavy startup cost for .NET when I netload and launch my
programs. My problem is that if I walk away from my desk for 20 minutes or
so or don't use one of my programs for a while they get garbage collected
and I have to wait until they are re jit'ed back into memory. Ram is cheap
time is expensive

C# .NET 2.0
Message 5 of 5
dmarcotte4
in reply to: dmarcotte4

Thanks for all the replies, I think Tony hit it the nail on the head. I was in a small drawing all day today and everything seemed fine. It seems time for me to get more ram.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost