-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
crash when using TDLib with WXPython. #3202
Comments
Could you try to rebuild TDLib with the workaround described at #2912 (comment)? |
@levlam Now only one question remains, can this be fixed in tdLib itself, or is it necessary to use this workaround for compilation every time? Or would it be much more correct to use vs 2019 for the build, since this workaround may cause other unforeseen problems? |
The MSVC changelog says
Are you sure that you have Redistributable of the new enough version? |
@levlam I mistakenly thought that Visual studio installed the C++ redistributables on the system, but this actually does not happen. In addition, some WXPython wheels contain an old version of the msvcp140.dll library, which also leads to the problem. |
Yes, this is the cause of the issue. |
When I try to use TDLib with the WXPython library, I get the following exception after the first call to td_execute, td_send or td_receieve:
OSError: exception: access violation reading 0x00000000
The problem only occurs when the WXPython library is imported. The libraries work fine separately from each other.
Also if TDLib is compiled in visual studio 2019 there is no problem.
I think the problem appeared when visual studio 2022 was updated to version 17.10 or 17.11
Because before that I compiled tdLib in vs 2022 and there were no conflicts with WXPython.
The text was updated successfully, but these errors were encountered: