Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Bug in Excel? Excel Multithreading ERROR

Hi, I am writing an multithreaded Excel Add-in program and an error. I
currently have no clue how to solve this. Please help. The description is as
below:

I created an Excel Add-in in C#. The add-in contains a separate thread that
read and write to the worksheet constantly.

I got a COMException when the program is accessing to the cell while I
clicking on the worksheet.

HRESULT of the exception is: 0x800AC472

I could mitigate this problem by having the add-in to retry after this
exception occur. However, Excel will not exit cleanly after exception occur.
That is, the Excel process still running after my add-in have been shutted
down and Excel window closed. I have to kill the process manually :(

Anyone having the same problem?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Bug in Excel? Excel Multithreading ERROR


"JCChin" wrote in message
...
Hi, I am writing an multithreaded Excel Add-in program and an error. I
currently have no clue how to solve this. Please help. The description is

as
below:

I created an Excel Add-in in C#. The add-in contains a separate thread

that
read and write to the worksheet constantly.

I got a COMException when the program is accessing to the cell while I
clicking on the worksheet.

HRESULT of the exception is: 0x800AC472

I could mitigate this problem by having the add-in to retry after this
exception occur. However, Excel will not exit cleanly after exception

occur.
That is, the Excel process still running after my add-in have been shutted
down and Excel window closed. I have to kill the process manually :(

Anyone having the same problem?




I think it's a bad idea to write a multi threaded add-in. My guess is that
Excel is not in the state it should be in when this add-in tries access a
cell while you try to access some other cell. Why does it constantly have to
read and write to the worksheet?

/Fredrik



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
Excel 2007 - error saving file & error loading dll TinaF Excel Discussion (Misc queries) 0 July 1st 09 01:49 PM
Counting instances of found text (Excel error? Or user error?) S Davis Excel Worksheet Functions 5 September 12th 06 04:52 PM
Multithreading in Excel Paul Excel Discussion (Misc queries) 3 September 1st 05 06:47 PM
Excel 2003 Macro Error - Runtime error 1004 Cow Excel Discussion (Misc queries) 2 June 7th 05 01:40 PM


All times are GMT +1. The time now is 09:58 PM.

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

About Us

"It's about Microsoft Excel"