PC Review


Reply
Thread Tools Rate Thread

Clearing RAM

 
 
=?Utf-8?B?TmF0aGFuRw==?=
Guest
Posts: n/a
 
      16th Feb 2007
Hi,

I have redeveloped a system that uses Excel as its front end. There have
been some changes to the backend i.e a version update, and it appears to slow
things down. The CPU's are fine but after prolonged usage excel slowly grinds
to a halt.

Is there a way to write some code to clear the RAM? I might hard code it in
or put it on a button for the user to chose to clear the RAM.

Thanks

Nathan
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Sm9lbA==?=
Guest
Posts: n/a
 
      16th Feb 2007
I've had problems with the indexing service eating up memory. Check to see
if cisvc.exe is running in the task manager a kill the process. If this
solves the problem, then turn off the indexing serrvice from automatically
running at startup. You don't need the indexing service

"NathanG" wrote:

> Hi,
>
> I have redeveloped a system that uses Excel as its front end. There have
> been some changes to the backend i.e a version update, and it appears to slow
> things down. The CPU's are fine but after prolonged usage excel slowly grinds
> to a halt.
>
> Is there a way to write some code to clear the RAM? I might hard code it in
> or put it on a button for the user to chose to clear the RAM.
>
> Thanks
>
> Nathan

 
Reply With Quote
 
Charles Williams
Guest
Posts: n/a
 
      16th Feb 2007
Sometimes Excel/VBA is not 100% clever about cleaning up objects etc
automatically.

Here are some possible solutions:

- close and restart Excel.

- check your temp folder for large numbers of files and clean it up.

- Make sure that your code explicitly destroys all created objects and forms
using SET object to Nothing
and unload form. destroy objects from the inside to the outside container
(ie range before sheet before book). Also check for heavy use of copy/paste
or copying large volumes of strings.

- check for memory leaks: does the amount of memory used by the Excel.exe
process (use Task Manager) increase after prolonged use of the app? If so
check for known memory leak problems:
http://www.decisionmodels.com/memlimitsd.htm


Charles
______________________
Decision Models
FastExcel 2.3 now available
Name Manager 4.0 now available
www.DecisionModels.com

"NathanG" <(E-Mail Removed)> wrote in message
news118BFFB-BB25-4E39-A736-(E-Mail Removed)...
> Hi,
>
> I have redeveloped a system that uses Excel as its front end. There have
> been some changes to the backend i.e a version update, and it appears to
> slow
> things down. The CPU's are fine but after prolonged usage excel slowly
> grinds
> to a halt.
>
> Is there a way to write some code to clear the RAM? I might hard code it
> in
> or put it on a button for the user to chose to clear the RAM.
>
> Thanks
>
> Nathan



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Clearing cells but also not clearing other dependent cells rtlars Microsoft Excel Programming 4 13th Mar 2010 04:46 AM
Clearing cells without clearing formulas marsjune68 Microsoft Excel Misc 2 10th Apr 2009 07:39 PM
Clearing A Row alex1982 Microsoft Excel Programming 2 18th Aug 2006 04:39 PM
CLEARING IN BOX =?Utf-8?B?V0FOREVSSU5HIEJMSU5ETFk=?= Microsoft Outlook 1 24th Jul 2004 01:25 AM
Re: Clearing OU's Herb Martin Microsoft Windows 2000 Active Directory 0 19th Aug 2003 06:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:08 PM.