WSACleanup called from dependent library close unintentionally MySQL connection

90 views Asked by At

I have a desktop application which use MySQL database. The application worked fine unless I add a new dependency which is a dll library which communicates with special hardware using socket. This new library call WSAStartup and WSACleanup to start and stop communication with the hardware.

But sometimes the connection to MySQL database is interrupted as well.

What are the guidelines for application which use more than one dependency working with winsockets?

Should these libraries call WSAStartup and WSACleanup?

0

There are 0 answers