In C/C++ if you declare Junk statically eg: "char Junk[1024];", Junk is of type "char*" so the &Junk will be of type "char**".
-----Original Message----- From: twsocket-boun...@elists.org [mailto:twsocket-boun...@elists.org] On Behalf Of Arno Garrels Sent: Sunday, 1 February 2009 3:55 AM To: ICS support mailing Subject: Re: [twsocket] EAccessViolations when Posting Data to a HTTPServer Keith Willis wrote: > Just confirming that you meant to write: > > ClientCnx->Receive(Junk, sizeof(Junk)); > > Instead of: > > ClientCnx->Receive(&Junk, sizeof(Junk)); I don't think so, I meant the address of Junk which is the address of the first element of the static array, isn't it? Same as ClientCnx->Receive(&Junk[0], sizeof(Junk)); In Delphi you MUST write it that way. Seems like CB has some built-in compiler magic so that ClientCnx->Receive(Junk, sizeof(Junk)); works as well (I used C++Builder 2007 and ICS v7). -- Arno Garrels -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be Internal Virus Database is out of date. Checked by AVG - http://www.avg.com Version: 8.0.173 / Virus Database: 270.7.6/1715 - Release Date: 10/8/2008 7:19 PM -- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be