memory miuxup was the problem. while libssh,the application and libcurl were compiled using /MDd, libssl was compiled using /MT .Thanks for the pointer
On Wed, Sep 16, 2009 at 11:36 PM, Daniel Stenberg <[email protected]> wrote: > On Wed, 16 Sep 2009, Gokul Krishna wrote: > > i am running libcurl 7.19.3 compiled with openssl and libssh2 support on a >> windows xp machine. i try to post a http request to a url and read the data >> returned(binary data). >> >> The code seems to crash randomly in free(). i verified if both the CRT >> versions are the same and both are using /MDd switch. >> > > 99.9% of the times someone reports something like this the problems are > outside of libcurl. It's either a memory system confusion/mixup (in > windows), usage of SSL multi-threaded without mutex callbacks set or > otherwise ruining memory from the app itself. > > If you build just a sample app from docs/examples/ and run it, does it > crash too? > > -- > > / daniel.haxx.se > -- Better to get up late and be wide awake than to get up early and be asleep all day.
