Reputation: 1640
I have some code in my project that reads from and writes into Excel 2003 using Excel COM API. Now this piece of code is called from two places:
1. From within the Excel add-in itself, on the same thread.
2. From a WPF application, where the WPF window was invoked on a separate thread.
The issue is, when the WPF application invokes the code, the normal operation of reading from Excel that should take 10 seconds is taking 2 minutes. I think it is because of the invocation from a new thread, but I'm not 100% sure.
Any ideas?
Upvotes: 1
Views: 539
Reputation: 64487
You have a number of things to consider:
Sorry this isn't a direct answer, but it gives some points to explore.
Upvotes: 3