LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to comp.lang.basic.visual.misc,microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default VB6 + Excel Objects 8 = 100% CPU on Win'NT


"E.Fridman" wrote in message
...
Hi,

I noticed that my VB6 application that parses a database into Excel
spreadsheet causes 100% CPU utilization on my Win'NT 4 computer. Is

it
normal? Should I be concerned?

TIA, Eugene



It's normal. Any application that does a lot of calcs and memory
manipulation, such as yours, will use up as much CPU time as it can get.

If you watch the CPU time by Process, you will see that often the Idle
Process is using the most. Its time doesn't count in the CPU time
utilization, so if nothing is happening on your computer, the CPU time
reports 0%. But if any applications are busy doing things, the CPU time
will go up to 100%, while the idle process time will drop to 0%. If more
than one app is busy, the CPU time will be shared between them.

The only reason you can get intermediate values for CPU utilization is
that it is a time interval average (normal interval is two seconds), and
sometimes apps will start and finish their business in less than the
time interval.

If you are concerned by how long your process takes to complete, you
might look at your code. Updating cell by cell is relatively slow, since
each call involves marshalling data between two processes (your app and
Excel). If you can arrange the values as comma-delimited text with line
breaks, you can copy the whole range as text to the clipboard in VB,
then select a spot in the excel worksheet and paste. It's much faster.


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting objects in Excel Blacktom Excel Discussion (Misc queries) 1 June 23rd 09 02:37 PM
Excel and Busines Objects . . Rachel Costanza[_2_] Excel Discussion (Misc queries) 2 November 11th 08 07:06 AM
serializing excel objects Chris Plater Excel Programming 0 January 22nd 04 04:24 AM
Embedded Objects in Excel Lonely[_4_] Excel Programming 0 December 15th 03 01:20 PM
Objects in VBA and Excel Stephen Bianchi Excel Programming 2 September 1st 03 07:36 PM


All times are GMT +1. The time now is 05:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"