mysqlmonitor "failed to set the specified COM apartment state"

mysqlmonitor "failed to set the specified COM apartment state"

Postby 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
shutterstock
 
Posts: 27
Joined: Sat 28 May 2005 20:37

Postby Serious » Wed 20 Jul 2005 06:31

You have to use [MTAThread] attribute:
Code: Select all
[MTAThread]
static void Main()
{
...
Serious
 


Return to dotConnect for MySQL