boostorg / mysql

MySQL C++ client based on Boost.Asio
https://www.boost.org/doc/libs/master/libs/mysql
Boost Software License 1.0
250 stars 32 forks source link

Using boost.mysql in dynamic libraries may cause crashes #318

Closed jphz closed 1 month ago

jphz commented 1 month ago

image Triggered an unprocessed exception: write access permission conflict. N is null ptr.

jphz commented 1 month ago

There will not be such issues when using in a static library.

jphz commented 1 month ago

I am very confused and hope to receive an answer.

jphz commented 1 month ago

image thread status

anarthal commented 1 month ago

A possible cause for your problem is having different versions of your libraries in the DLL you're building and in your main. Check that:

If that doesn't solve the problem, I'd need more information to investigate. That'd include your compiler version, build flags, whether you're using Boost.MySQL only in your DLL or also in your main, and whether you're using other Boost libraries in your main.

anarthal commented 1 month ago

Any news on this? Was the issue solved?

jphz commented 1 month ago

There was a problem with my code writing, but it has been resolved. I am very sorry.

anarthal commented 1 month ago

Closing this now.