On 2/26/2016 4:45 AM, Jules van der Toorn wrote:
Thanks for your answer on my previous question about how to only receive the subject of the most recent mail, it worked perfectly. I build libCurl to a static library, but now i want to convert it to a static library.
I followed the guide of mtlynch on this page:
http://stackoverflow.com/questions/20171165/getting-libcurl-to-work-with-visual-studio-2013
When i build the simple code he gave in his guide, it works great. However if i use my (working with the dynamic library) mail receive program, MSVC gives an error: first it says "program.exe has triggered a breakpoint", and if i click continue it says: "Debug Assertion Failed!" "Expression: _CrtIsValidHeapPointer(pUserData)" I already tried rebuilding with MACHINE=x64 (My pc is x64, but MSVC is x86).

I think Gisle is right, what you are seeing is likely because you are mixing debug and release static libraries. The directions you cite are for the release configuration not for the debug configuration. If you use those directions on a debug configuration then you will see a heap validation error. For more information please refer to https://github.com/curl/curl/issues/628#issuecomment-179079724

Also could you please not top post it's making the conversation hard to follow.
https://curl.haxx.se/mail/etiquette.html#Do_Not_Top_Post

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:  https://curl.haxx.se/mail/etiquette.html

Reply via email to