The embedded server of 4.0.1 for win32 leaks one thread (the server thread
to be exact) per mysql_server_init / mysql_server_end pair.  I've
experimented
with mysql_shutdown and mysql_thread_end as well, but they do not resolve
the issue.  Eventually (after 10 times or so starting/ending the server
within the
same process) the process crashes.

Example:

int main(void)
{
 static char *my_argv[] = {
  "mysqld",
  "--skip-networking",
  "--skip-name-resolve",
  NULL
 };
    int i;

    for (i = 0 ; i < 5 ; ++i) {
        mysql_server_init(sizeof (my_argv) / sizeof (*my_argv) - 1,
                          my_argv, NULL);
        mysql_server_end();
    }
    while (1)
        Sleep(1000);

    /* never reached */
    return 0;
}

A process viewer shows 6 threads remaining (the initial process + 5 left
overs
from mysql).

Kind regards,

Frans van Dorsselaer
<[EMAIL PROTECTED]>



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to