MFC project used to access mysql database crashed

柚 加 1 Reputation point
2021-06-29T03:27:51.313+00:00

I use multiple threads to access the MySQL database through ado. The work of each thread is: just connect to the database and then disconnect, and then end. But every time after running for a long time, the program crashes, and the crashing interface is as follow.

110037-%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE290.png
figure 1

the function showing in the figure 2 is used in the thread:
110045-%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE317.png
figure 2

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,369 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 questions
{count} votes