cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: It's a bad idea to do this, isn't it?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Fri, 18 Mar 2011 13:11:55 -0700

On Fri, Mar 18, 2011 at 03:57:48PM -0400, Saqib Ali wrote:
> Within my progress-callback function, when I got to 100% transferred, I was
> deleting the corresponding curl handle.
> It was then crashing. That's probably a really bad thing to do, from within the
> callback, isn't it?

Yes. When the callback returns, there's no handle left for the caller to access.

>>> Dan
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-18