cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP Upload Crash!! (Win32 libcurl DLL) Help me.

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 11 Jan 2008 14:46:51 +0100 (CET)

On Fri, 11 Jan 2008, ΈΝΏ΅±Ή wrote:

> But, the program has occurs memory error after FreadCallback() was
> performed.
>
> I read the libcurl manual and saw the ftpupload example, But I cannot solve
> the problem. K

The source code was incomplete so it isn't possible to tell for sure, but you
most likely get the problem because that callback function isn't a static
method in your class or similar. The callback is called from C code so the C++
callback function gets no 'this' pointer.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2008-01-11