.NET

Reply
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 1 of 5 (68 Views)

Garbage collection .NET

68 Views, 4 Replies
12-04-2005 06:22 AM
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
*Norman Yuan
Message 2 of 5 (68 Views)

Re: Garbage collection .NET

12-04-2005 08:45 AM 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
*Tony Tanzillo
Message 3 of 5 (68 Views)

Re: Garbage collection .NET

12-04-2005 06:26 PM 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
*J. Daniel Smith
Message 4 of 5 (68 Views)

Re: Garbage collection .NET

12-05-2005 07:58 AM 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
Distinguished Contributor
dmarcotte4
Posts: 195
Registered: ‎04-02-2005
Message 5 of 5 (68 Views)

Re: Garbage collection .NET

12-05-2005 06:22 PM 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.
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!