![]() |
|
![]() |
|
cURL ![]() ![]() ![]() curlpp mailing list Archives
[cURLpp] HTTP POST and WriteCallback
From: Nazario Cipriani <NazarioCipriani_at_web.de>
Date: Thu, 28 Jul 2005 17:31:13 +0200
Hi!
There is a strange problem I encountered with the WriteCallback.
class WriterMemoryClass
// Cast the void* data pointer to WriterMemoryClass...
// (Re)Allocate memory for the buffer
// Test if Buffer is initialized correctly & copy memory
// return the real size of the buffer...
// Public member vars
Now comes the problem description.
WriterMemoryClass* Memory = (WriterMemoryClass*) data;
The Memory pointer looks strange to me.
memcpy(&(Memory->m_pBuffer[Memory->m_Size]), ptr, realsize);
it aborts and exits with a memory access violation.
As I use the same class for my HTTP GET requests (where it works) I
Thanks in advice for your help!
-- Spanne den Bogen, aber schieße nicht los! Noch gefürchtet zu sein ist wirksamer! (altes chinesisches Sprichwort) _______________________________________________ cURLpp mailing list cURLpp_at_rrette.com http://www.rrette.com/mailman/listinfo/curlppReceived on 2005-07-28 These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info