I created a MDI and added two child forms. Each of the child form had a private member,
when I clicked on a button, a BackgroundWorker will start and use the modiDoc to do some processing.
Everything worked fine if I had only child form. However, if opened two and ran them simultaneously, I would get an exception thrown from the COM object.
And later, the main form would throw another exception
My guess was that only one instance of the modiDoc was created instead of two for each of the child forms. While two process tried to use the same object to do different things, it just collapsed.
Anyone has any idea how to fix the problem?
Thanks!
tofuTnT
Code:
private MODI.Document modiDoc;
Everything worked fine if I had only child form. However, if opened two and ran them simultaneously, I would get an exception thrown from the COM object.
Code:
Error Code: -959966917
Error Message: bad shapepacks
Code:
(-2147417851): RPC_E_SERVERFAULT (The server threw an exception.)
Anyone has any idea how to fix the problem?
Thanks!
tofuTnT