Can Someone Show me an ExcelAsyncUtil.Observe example by C#? #457
-
I use an async Task function in UDF like this, now I use the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I'm worried when I see |
Beta Was this translation helpful? Give feedback.
I'm worried when I see
ExcelApp
inside the async method. I'm guessing this means you are using the Excel COM object model from the task which will run on a separate thread. You should never use the Excel COM object model form a worker thread. If you do, various problems can occur, including the Excel process not shutting down properly.