| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-library Mailing List Archives
Crash using WRITEDATA callback depending on CUSTOMREQUEST sent!
From: Arnaud Maye <amaye_at_hispeed-sr.ch>
Date: Wed, 14 Mar 2007 15:35:19 +0200
Hello, am having a crash problem when I use call back.
Details of my configuration:
-libcurl 7.16.1 (/MT - Multithread - .dll ) ( Release and debug builds )
Am trying to retrieve complete dirlist of a folder, in a ftp server
Each time I enable my call back WRITEDATA ( curl_easy_setopt(curl,
If I comment the _setopt function configuring the call back, it doesnt
More suprising is if I leave the call back enabled and I use "NST"
By crash I mean some crash in _perform without to even reach the callback
Here is my code :
#define REMOTE_URL "ftp://censored.com/"
void ShellUpdater::GetDirName(void)
memset(gData, 0, 600);
/* In windows, this will init the winsock stuff */
/* get a curl handle */
curl_easy_setopt(curl, CURLOPT_FTP_USE_EPSV, 0);
/* Allocate, zero ( get rid of terminator requirement and set
/* specify target */
/* Set a client name, friendly */
/* Declare my call back */
/* cleanup */
/*free our custom command buffer */
curl_global_cleanup();
}
size_t ShellUpdater::WriteData(void *buffer, size_t size, size_t nmemb,
strcat_s(gData, 600, data);
As stated in the documentation, my callback is of course declared as a
static size_t WriteData(void *buffer, size_t size, size_t nmemb, void
Details about the crash:
When running in debug mode I get a nag box : "Microsoft Visual Studio
and the debugger point me here :
__declspec(noinline)
In release mode, it is exactly same. Running the shell.exe outside of
Any ideas?
Warm regards
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info