cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Callback memory error

From: Naved Khan <navedk_at_cybage.com>
Date: Mon, 28 Apr 2003 23:57:33 +0530

yes. I did that. The problem is solved and was due to the struct definition inside the switch case. The variable used to go out of scope (end of case) when the callback was called. It's working fine now.
Thanks,
Naved
 
-----Original Message-----
From: Daniel Stenberg [mailto:daniel_at_haxx.se]
Sent: Mon 4/28/2003 7:44 PM
To: CurlMailing (E-mail)
Cc:
Subject: Re: Callback memory error



        On Fri, 25 Apr 2003, Naved Khan wrote:
        
> From my client application, But when I call Post followed by Get, it
> crashes in the callback as the data becomes invalid and mem->size shows
> garbage value(3435973836) . So it fails in realloc. But If I call Get and
> then Put it works fine. (sounds insane...just writing what is happening and
> hoping for some clue).
        
        So if this is repeatable, why not just set a break-point there, re-run your
        program and single-step through the code until it dumps?
        
        --
         Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
        
        
        -------------------------------------------------------
        This sf.net email is sponsored by:ThinkGeek
        Welcome to geek heaven.
        http://thinkgeek.com/sf
        

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Received on 2003-04-28