I had a problem with a COM component in .NET. It would instantiate but threw exceptions every time I called a method on it.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Without seeing the code it’s really difficult. I don’t know that much about COM but you might want to check if your .net program is compiling for 32 or 64 bit and depending on your platform you may have to explicitly set the threading model on the entry point to your application, e.g. in a windows console application you’d do:
I remember having a similar issue once upon a time but can’t remember for sure if this fixed it or not. Some more info: http://msdn.microsoft.com/en-us/library/system.stathreadattribute.aspx