<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.newlc.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>NewLC - Sending file problem - Comments</title>
 <link>http://www.newlc.com/topic-9188</link>
 <description>Comments for &quot;Sending file problem&quot;</description>
 <language>en</language>
<item>
 <title>Re: Sending file problem</title>
 <link>http://www.newlc.com/topic-9188#comment-22659</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&amp;nbsp;thanks msa2 &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;Problem solved .... ur a life saver &lt;img src=&quot;/sites/all/modules/smf_filter/smf_smileys/smiley.gif&quot; alt=&quot;Smiley&quot; border=&quot;0&quot; /&gt; &lt;br /&gt;&lt;br /&gt;if u &amp;#039;ve any comments on code please let me know ......&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description>
 <pubDate>Mon, 25 Jul 2005 13:41:40 +0200</pubDate>
 <dc:creator>Kerdany</dc:creator>
 <guid isPermaLink="false">comment 22659 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Sending file problem</title>
 <link>http://www.newlc.com/topic-9188#comment-22658</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;You are doing things rather complex way, so it&amp;#039;s hard to follow and there can be many errors. However, the most obvious potential bug is your SendNextPacket&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;/Start Send operation&lt;br /&gt;TPtrC8 arr =iDataToSend-&amp;gt;Mid( iStartIndex , sendLength ) ;&lt;br /&gt;&lt;br /&gt;iSocket.Send(arr,KSIWriteOnly,iStatus,iLength);&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;Your &amp;quot;arr&amp;quot; can be destroyed (be out of scope), before the socket server has accessed it. You need to move it into member variable. Also, I have no clue what KSIWriteOnly is supposed to do with TCP.&lt;br /&gt;&lt;br /&gt;This is common error. People don&amp;#039;t realize that the &amp;#039;arr&amp;#039; is passed as a pointer to the descriptor which in local stack (in C syntax, the equivalent would be. Send(&amp;amp;arr, KSIWriteOnly, &amp;amp;iStatus, &amp;amp;iLength)).&lt;br /&gt;&lt;br /&gt;Oh, and...&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;iBytesSent += sendLength&amp;nbsp; ;&lt;br /&gt;iStartIndex = iBytesSent - 1;&lt;br /&gt;&lt;/div&gt;...should most likely be&lt;br /&gt;&lt;div class=&quot;codeheader&quot;&gt;Code:&lt;/div&gt;&lt;div class=&quot;code&quot;&gt;iBytesSent += sendLength&amp;nbsp; ;&lt;br /&gt;iStartIndex = iBytesSent;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</description>
 <pubDate>Wed, 20 Jul 2005 22:58:51 +0200</pubDate>
 <dc:creator>msa2</dc:creator>
 <guid isPermaLink="false">comment 22658 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Sending file problem</title>
 <link>http://www.newlc.com/topic-9188#comment-22657</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;thanks yucca for your reply ....&lt;br /&gt;&lt;br /&gt;but i didn&amp;#039;t really get your idea ..... data is sent in a binary form so where the problem can be raised ....&lt;/div&gt;</description>
 <pubDate>Wed, 20 Jul 2005 20:19:00 +0200</pubDate>
 <dc:creator>Kerdany</dc:creator>
 <guid isPermaLink="false">comment 22657 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Sending file problem</title>
 <link>http://www.newlc.com/topic-9188#comment-22656</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;same question!!&lt;/div&gt;</description>
 <pubDate>Wed, 20 Jul 2005 17:17:11 +0200</pubDate>
 <dc:creator>pai</dc:creator>
 <guid isPermaLink="false">comment 22656 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: Sending file problem</title>
 <link>http://www.newlc.com/topic-9188#comment-22655</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;maybe the data has line ending or some other character that messes up the communication. To get rid of the problematic characters, you could try encoding the data using base64 for example.&lt;br /&gt;&lt;br /&gt;yucca&lt;/div&gt;</description>
 <pubDate>Wed, 20 Jul 2005 15:17:38 +0200</pubDate>
 <dc:creator>yucca</dc:creator>
 <guid isPermaLink="false">comment 22655 at http://www.newlc.com</guid>
</item>
<item>
 <title>Sending file problem</title>
 <link>http://www.newlc.com/topic-9188</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;/div&gt;&lt;p&gt;&lt;a href=&quot;http://www.newlc.com/topic-9188&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-9188#comments</comments>
 <category domain="http://www.newlc.com/forums/internet">Internet</category>
 <pubDate>Wed, 20 Jul 2005 14:45:04 +0200</pubDate>
 <dc:creator>Kerdany</dc:creator>
 <guid isPermaLink="false">9685 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
