curl-library
Re: calling function twice causes crash
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 6 Jul 2006 15:50:13 -0700
Date: Thu, 6 Jul 2006 15:50:13 -0700
On Thu, Jul 06, 2006 at 06:11:09PM -0400, Sheldon Neuberger wrote:
> I changed the program so that it calls curl_global_init once at the
> beginning. However, when I call the getip() function the second time it
> crashes when it reaches curl_easy_perform(curl_handle);
Can you run your program in a debugger and find out where it's crashing?
Also, what version of libcurl are you using and on what platform?
> Also, I use curl twice in this program. I use it once to query a webpage
> and store the data it returns in a variable. I use it again to take that
> variable along with some other user-provided info and post it to a form.
That's a perfectly fine use of libcurl.
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has movedReceived on 2006-07-07