Getting COM apartment state error

Jul 11, 2013 at 3:58 PM
I am using the library in a program that has several concurrent threads running. The lib will be called from one the threads. When I call it, I get an error that says:

Failed to set the specified COM apartment state.

The error is occurring when I all the method: WriteMetadata

Any ideas on this?