Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Multi-threaded calculation and VBA

I have an example with VBA and a simple sheet, which
- runs OK in Excel 2000
- runs OK in Excel 2007 when multi-threaded calculation is disabled
- fails in Excel 2007 when multi-threaded calculation is enabled on a
dual-core processor

It is really simple, it just changes some variables back and forth and
checks that the computed value from them is what it shoud be. There is a User
Form on the screen, and when I drag the form with my mouse during the
computation, the computation fails (in Excel 2007 on Vista with MTC and
dual-core).

The sheet is he
http://www.mylvin.com/stuff/mtctest.zip
Open the sheet, click the button "Start MTC Stress Test",
click the button "Start the test" on the form which opens,
and then drag the form to a different position on the screen with your mouse.
You'll see the error message about the computation.
If you don't drag, the test runs fine.

I'm not sure if this is a bug in Excel 2007 (if so, I don't know where to
report it) or a wrong approach when programming with VBA into multi-threaded
enviroment.

What do you think?

- Jorma.
http://www.mylvin.com
Reply
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
Multi NetWorkDays Calculation Chris Excel Worksheet Functions 3 April 20th 10 07:52 AM
Multi threaded calculation (multi CPU) - impact on calculation spe Pascal[_2_] Excel Discussion (Misc queries) 1 December 3rd 08 10:46 AM
multi tiered percentage rent calculation CoreyWA Excel Worksheet Functions 3 October 2nd 08 03:18 AM
Excel is multi threaded program? thanks maplemaple[_2_] Excel Programming 3 January 15th 06 10:20 PM
Threaded programming in VBA Martin[_25_] Excel Programming 1 October 22nd 05 09:38 PM


All times are GMT +1. The time now is 12:04 PM.

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"