curl-library
Re: calling function twice causes crash
Date: Thu, 06 Jul 2006 21:01:38 -0400
> Can you run your program in a debugger and find out where it's crashing?
It crashes when it calls getip() for the second time. It crashes in that
function on "curl_handle = curl_easy_init();" When I went through the
debugger again I found curl_easy_init() is crashing on the line "res =
Curl_open(&data);" which is in easy.c
> Also, what version of libcurl are you using and on what platform?
I am running libcurl 7.15.3 on Windows 2000 SP4. Libcurl and the program
in question were compiled with MSVC++ 2005 Express Edition.
> Also, please show us the source for WriteMemoryCallback
Since it is only ~150 lines long, I posted all the code at
http://pastebin.us/1100. The line where it crashes is highlighted.
Received on 2006-07-07