<?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 - How encode image data to a descriptor, not file ? urgent!!! - Comments</title>
 <link>http://www.newlc.com/topic-7219</link>
 <description>Comments for &quot;How encode image data to a descriptor, not file ? urgent!!!&quot;</description>
 <language>en</language>
<item>
 <title>Re: How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219#comment-18605</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;What is the value of iStatus in RunL()?&lt;/div&gt;</description>
 <pubDate>Fri, 22 Sep 2006 12:49:52 +0200</pubDate>
 <dc:creator>tinatibrewal</dc:creator>
 <guid isPermaLink="false">comment 18605 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219#comment-18604</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;yeah i have the same problem too... i used the NULL pointer it&amp;#039;s ok&lt;br /&gt;but after i convert image using API function &amp;#039;Convert&amp;#039;... the pointer is still NULL...&lt;/div&gt;</description>
 <pubDate>Mon, 18 Sep 2006 05:58:49 +0200</pubDate>
 <dc:creator>winstonma</dc:creator>
 <guid isPermaLink="false">comment 18604 at http://www.newlc.com</guid>
</item>
<item>
 <title>Re: How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219#comment-18603</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hi,&lt;br /&gt;&amp;nbsp; &amp;nbsp; I just meet this error today, and now I have solved it .&lt;br /&gt;The error occurs the following code:&lt;br /&gt;&amp;nbsp; &amp;nbsp; HBufC8* iBufC8 = HBufC8::NewL(850);&lt;br /&gt;&amp;nbsp; &amp;nbsp;When I pay attention to the parameter HBufC8&lt;b&gt;*&amp;amp;&lt;/b&gt; aBufferName of CImageEncoder::DataNewL function, it&amp;#039;s a *&amp;amp; type. So the buffer will be allocated in the function of CImageEncoder::DataNewL , then assign the start address to the aBufferName, which is reference of income pointer. So, if use a pointer which is already point to memory space on the heap to the CImageEncoder::DataNewL&amp;nbsp; function, will lead to memory leak and the program will exit with panic.&lt;br /&gt;&amp;nbsp; &amp;nbsp; So, the solution is very simple, Just overwirte the following code:&lt;br /&gt;&amp;nbsp; &amp;nbsp;HBufC8* iBufC8 = HBufC8::NewL(850);&lt;br /&gt;&amp;nbsp; &amp;nbsp;to:&lt;br /&gt;&amp;nbsp; &amp;nbsp;HBufC8* iBufC8 = NULL;&lt;br /&gt;&amp;nbsp; &amp;nbsp;Thank OK!&lt;/div&gt;</description>
 <pubDate>Tue, 13 Dec 2005 13:41:07 +0100</pubDate>
 <dc:creator>imul</dc:creator>
 <guid isPermaLink="false">comment 18603 at http://www.newlc.com</guid>
</item>
<item>
 <title>Bitmap to Descriptor</title>
 <link>http://www.newlc.com/topic-7219#comment-18602</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Hey howardchan&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Even I have the same problem. I think the problem is with the buffer&lt;br /&gt;&lt;br /&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; HBufC8* iBufC8 = HBufC8::NewL(850);&lt;br /&gt;&lt;br /&gt; &amp;nbsp; Plz let me know If you have solved this problem.&lt;br /&gt;&lt;br /&gt;Thanks in advance&lt;/div&gt;</description>
 <pubDate>Mon, 16 May 2005 07:52:32 +0200</pubDate>
 <dc:creator>ihjaz</dc:creator>
 <guid isPermaLink="false">comment 18602 at http://www.newlc.com</guid>
</item>
<item>
 <title>That API properly working</title>
 <link>http://www.newlc.com/topic-7219#comment-18601</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;I can surely say that The DataNewL() function propery working~&lt;br /&gt;&lt;br /&gt;but i could not say how to solve that problem&lt;br /&gt;&lt;br /&gt;, i just say one tip you should study base C++ about pointer&lt;br /&gt;&lt;br /&gt;sorry, but i hope this tip and information helpful to you.&lt;/div&gt;</description>
 <pubDate>Fri, 06 May 2005 05:47:07 +0200</pubDate>
 <dc:creator>theyoung</dc:creator>
 <guid isPermaLink="false">comment 18601 at http://www.newlc.com</guid>
</item>
<item>
 <title>How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219#comment-18600</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Sorry , maybe my English isn&#039;t well. The panic I said now just means the leave I said last time .&lt;br /&gt;Yes , as you said , &amp;nbsp;my ap will leave with the notification &amp;quot;Progarmme closed &amp;nbsp;my ap name&amp;quot; . &amp;nbsp;Is this leave or panic ? Anyhow , the notification will appear and ap exit . &lt;br /&gt;And I can&#039;t trap any useful data for my ap . &lt;br /&gt;Really thanks deeply for your help , didster .&lt;br /&gt;&lt;br /&gt;Howard[/url]&lt;/div&gt;</description>
 <pubDate>Thu, 05 May 2005 04:46:45 +0200</pubDate>
 <dc:creator>howardchan</dc:creator>
 <guid isPermaLink="false">comment 18600 at http://www.newlc.com</guid>
</item>
<item>
 <title>How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219#comment-18599</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;b&gt;Panic??&lt;/b&gt; &amp;nbsp;You can&#039;t trap panics, only leaves.&lt;br /&gt;&lt;br /&gt;If your app is panicing, the whats the panic code? &amp;nbsp;Does it show &amp;quot;Program closed, my app name&amp;quot;?&lt;/div&gt;</description>
 <pubDate>Wed, 04 May 2005 10:30:09 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 18599 at http://www.newlc.com</guid>
</item>
<item>
 <title>To  didster       from howardchan     about DataNewL()</title>
 <link>http://www.newlc.com/topic-7219#comment-18598</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;&lt;div class=&quot;quoteheader&quot;&gt;Quote from: didster&lt;/div&gt;&lt;div class=&quot;quote&quot;&gt;Have to tried trapping the call to DataNewL to see what it&#039;s leaving with?&lt;br /&gt;&lt;br /&gt;Maybe the output buffer isn&#039;t big enough?&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Hi, didster, &amp;nbsp;thanks so much for your reply . &lt;br /&gt;But as your &amp;nbsp;advice, I try to trap &amp;nbsp;the panic . But not any useful result . By the S60 SDK&#039;s Help, the API DataNewL(), it seem that it won&#039;t return any panic when certain error occur . &lt;br /&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;b&gt;Could you give me some other effective advice ?&lt;/b&gt; &lt;/span&gt;&lt;br /&gt;Thank you in advance .&lt;br /&gt;&lt;br /&gt;Howard&lt;/div&gt;</description>
 <pubDate>Wed, 04 May 2005 09:57:41 +0200</pubDate>
 <dc:creator>howardchan</dc:creator>
 <guid isPermaLink="false">comment 18598 at http://www.newlc.com</guid>
</item>
<item>
 <title>How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219#comment-18597</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Have to tried trapping the call to DataNewL to see what it&#039;s leaving with?&lt;br /&gt;&lt;br /&gt;Maybe the output buffer isn&#039;t big enough?&lt;/div&gt;</description>
 <pubDate>Wed, 27 Apr 2005 12:13:25 +0200</pubDate>
 <dc:creator>didster</dc:creator>
 <guid isPermaLink="false">comment 18597 at http://www.newlc.com</guid>
</item>
<item>
 <title>How encode image data to a descriptor, not file ? urgent!!!</title>
 <link>http://www.newlc.com/topic-7219</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-7219&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-7219#comments</comments>
 <category domain="http://www.newlc.com/forums/2d-3d-graphics">Bitmaps and Graphics</category>
 <pubDate>Wed, 27 Apr 2005 11:58:45 +0200</pubDate>
 <dc:creator>howardchan</dc:creator>
 <guid isPermaLink="false">7850 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
