mysqlmonitor "failed to set the specified COM apartment state"

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
shutterstock
Posts: 27
Joined: Sat 28 May 2005 20:37

mysqlmonitor "failed to set the specified COM apartment state"

Post by shutterstock » Sun 17 Jul 2005 23:38

i tried to use the mysqlmonitor -- but i get this error when setting IsActive to true:

"failed to set the specified COM apartment state"

Using .NET 2005 Beta 2.. and MySQLDirect 3.0

any ideas?
Jon

Serious

Post by Serious » Wed 20 Jul 2005 06:31

You have to use [MTAThread] attribute:

Code: Select all

[MTAThread]
static void Main() 
{
...

Post Reply