Page 1 of 1

mysqlmonitor "failed to set the specified COM apartment state"

Posted: Sun 17 Jul 2005 23:38
by shutterstock
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

Posted: Wed 20 Jul 2005 06:31
by Serious
You have to use [MTAThread] attribute:

Code: Select all

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