Hi all,
I have a problem with threading here.
In my scenario, I need to do a very long operation after opening a file. Because of the long operation, it will cause the program to become "Not Responding" if the user clicks anywhere in the application. This is where my threading comes into place, replacing the troublesome "Not Responding" with a loading message in a form.
However, the problem is that at program load/startup, my program will instantiate objects of different classes before threading, and after the long operation in the threading, I seem not to be able to use those objects instantiated earlier on. What's wrong?
The error is: COM object that has been separated from its underlying RCW cannot be used.
What does this mean? Does anybody know?
Hope I can get some help here! Thanks.
b0ssY