Skip to content
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

MSVC Read access violation #273

Open
Vitaliy320 opened this issue Apr 5, 2023 · 2 comments
Open

MSVC Read access violation #273

Vitaliy320 opened this issue Apr 5, 2023 · 2 comments

Comments

@Vitaliy320
Copy link

Vitaliy320 commented Apr 5, 2023

I was trying to run examples at tgbot-cpp/samples/echobot/src/main.cpp and tgbot-cpp/samples/echobot-curl-client/src/main.cpp. In both cases i got an exception "read access violation. this was 0xFFFFFFFFFFFFFFBF." in a file "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include\xhash". The exception is triggered by bot.getEvents().onCommand. Has anyone encountered this issue? Thank you.
screen1

@carlosfvp
Copy link

carlosfvp commented Jan 20, 2024

This happened to me on debug mode x64.

I installed the package using vcpkg and using the debug .lib file also.

This was solved when I changed to release mode, but I am losing all debug capabilities.

Looks like x64 Debug mode has the initializacion of all classes broken or it's more of an issue with the way it's compiled.

image

Using C++17 standard on the compiler.

I'll rollback to C++14 and post results.

@carlosfvp
Copy link

carlosfvp commented Jan 20, 2024

Same results with C++14

Any class constructor of the TgBot library returns a pointer to a invalid region.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants