-
Notifications
You must be signed in to change notification settings - Fork 949
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
Executable compiled with Visual Studio 2019 and NuGet package 1.9.8 in Debug configuration throws exception #1146
Comments
Today I tested the behaviour on my private home computer:
Building the executable again works with all combinations of configurations and platforms. But executing only works for the Release x64 build. |
@DonChunior thanks for reporting! I will try to look into this. |
Hello @COM8, thanks, I would appreciate it very much if there would be a fix for my problem in the 1.9.x version, because I am bound to the standard C++14 due to dependencies to other libraries. |
@DonChunior I can not reproduce your issue in VS 2022. I used:
Bot, Release and Debug compile and execute with cpr 1.9.8. Do you mind sharing an example solution for me to reproduce this? |
Hello @COM8, When developing plugins for a CAD system, I am bound to Visual Studio version 2019 by the software manufacturer of the CAD system. |
@DonChunior thanks for clarifying! Let me see if I can install VS2019 and retest... |
OK, finally I was able to install VS2019... Looks like there is no community version for old releases available any more... I would have had to subscribe to professional or enterprise. WTF?! Well... I released Please let me know if it works. |
Hi @COM8, I'm glad to tell you, that with 1.9.9-alpha1 the problem I had is solved and the exceptions don't appear anymore! 😃 |
Awesome! Glad to hear. I will make a final 1.9.9 release over the next couple of days. This will most likely also be ported to master. |
Description
I'm using following simple example code:
Building the executable works with all combinations:
But executing does only work for the Release builds.
The Debug builds throw an error:
When the exception is thrown, Visual Studio jumps to line 58 of the file ...\packages\libcpr.1.9.8\build\native\x64\Debug\include\cpr\api.h:
Example/How to Reproduce
Possible Fix
No response
Where did you get it from?
NuGet
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: