Tomas Kubes
Tomas Kubes

Reputation: 25098

WSACleanup called from dependent library close unintentionally MySQL connection

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?

Upvotes: 0

Views: 96

Answers (0)

Related Questions