<?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 - Panic due to CFbsBitmap loaded in Font and bitmap server - Comments</title>
 <link>http://www.newlc.com/topic-5607</link>
 <description>Comments for &quot;Panic due to CFbsBitmap loaded in Font and bitmap server&quot;</description>
 <language>en</language>
<item>
 <title>Panic due to CFbsBitmap loaded in Font and bitmap server</title>
 <link>http://www.newlc.com/topic-5607#comment-15306</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanks for that info - it&#039;s definately something I will bear in mind when using CFbsBitmap.&lt;br /&gt;&lt;br /&gt;S&lt;/div&gt;</description>
 <pubDate>Tue, 05 Apr 2005 11:52:46 +0200</pubDate>
 <dc:creator>Scarfman007</dc:creator>
 <guid isPermaLink="false">comment 15306 at http://www.newlc.com</guid>
</item>
<item>
 <title>Figured it out</title>
 <link>http://www.newlc.com/topic-5607#comment-15305</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Actually I took this question right to the top and asked Symbian support here in Japan. &lt;br /&gt;Basically in my case, the deletion of the memory representing the CFbsBitmap object takes place asynchrously, as the CFbsBitmap was large, the cleanup actually took place after the session ended. &lt;br /&gt;I ended up using a client / server architecture and checked the heap using __UHEAP_MARKEND; after the session was closed.&lt;/div&gt;</description>
 <pubDate>Tue, 05 Apr 2005 11:24:01 +0200</pubDate>
 <dc:creator>Niimidan-forum</dc:creator>
 <guid isPermaLink="false">comment 15305 at http://www.newlc.com</guid>
</item>
<item>
 <title>Still having trouble with CFbsBitmap</title>
 <link>http://www.newlc.com/topic-5607#comment-15304</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;This problem is quite simple but I am missing something fundamental with how to allow the bitmap server to release the bitmap&#039;s associated memory. Even this little snippet of code will Panic.&lt;br /&gt;&lt;br /&gt;__UHEAP_MARK;&lt;br /&gt;_LIT(KTestMbm, &amp;quot;Z:\\SYSTEM\\APPS\\HelloWorld\\T_TestBitmap.MBM&amp;quot;);&lt;br /&gt;TInt id = 0;&lt;br /&gt;CFbsBitmap* bitty = new (ELeave) CFbsBitmap();&lt;br /&gt;&lt;br /&gt;bitty-&amp;gt;Load(KTestMbm, 0, EFalse);&lt;br /&gt;bitty-&amp;gt;Reset();&lt;br /&gt;delete bitty;&lt;br /&gt;bitty = NULL;&lt;br /&gt;__UHEAP_MARKEND;&lt;br /&gt;&lt;br /&gt;At __UHEAP_MARK a Panic occurs. The bitmap itself is deleted but something is still not released from the server. Hmmm. Please help.&lt;/div&gt;</description>
 <pubDate>Wed, 09 Mar 2005 09:43:55 +0100</pubDate>
 <dc:creator>Niimidan-forum</dc:creator>
 <guid isPermaLink="false">comment 15304 at http://www.newlc.com</guid>
</item>
<item>
 <title>Panic due to CFbsBitmap loaded in Font and bitmap server</title>
 <link>http://www.newlc.com/topic-5607#comment-15303</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;Thanks for the reply Elk!&lt;br /&gt;&lt;br /&gt;I tried the &lt;br /&gt;TRAP(ret, &amp;nbsp;saveImage.SaveJpegL(KDestJPEGFileError, *this, info ) );&lt;br /&gt;if(ret != KErrNone)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;CleanupStack::PopAndDestroy( bitty ); // Elk&#039;s suggestion &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;User::Leave( ret );&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;}&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Even with that, the pesky Font and Bitmap server does not release that area of memory taken up at this point in the code.&lt;br /&gt;&lt;br /&gt;User::LeaveIfError(bitty-&amp;gt;Load( KTestMBM, 0, EFalse)); &lt;br /&gt;&lt;br /&gt;Once I load the bitmap from the MBM file, I can&#039;t seem to release the memory from the server. &amp;nbsp;&lt;br /&gt;&lt;br /&gt;Is there something else I can try?&lt;br /&gt;&lt;br /&gt;Thanks for the help.&lt;/div&gt;</description>
 <pubDate>Fri, 18 Feb 2005 01:39:54 +0100</pubDate>
 <dc:creator>Niimidan-forum</dc:creator>
 <guid isPermaLink="false">comment 15303 at http://www.newlc.com</guid>
</item>
<item>
 <title>Panic due to CFbsBitmap loaded in Font and bitmap server</title>
 <link>http://www.newlc.com/topic-5607#comment-15302</link>
 <description>&lt;div class=&quot;smf-content&quot;&gt;_LIT(KTestMBM, &amp;quot;Z:\\system\\Apps\\T_ItFjmmSaveImageCat1\\T_ItFjmmSaveImage.MBM&amp;quot;);&lt;br /&gt;CFbsBitmap* bitty = new (ELeave) CFbsBitmap;&lt;br /&gt;CleanupStack::PushL(bitty);&lt;br /&gt;User::LeaveIfError(bitty-&amp;gt;Load( KTestMBM, 0, EFalse));&lt;br /&gt;iEncoder = CImageEncoder::FileNewL( iFs, aFileName, CImageEncoder::EOptionNone, KImageTypeJPGUid ));&lt;br /&gt;...&lt;br /&gt;CleanupStack::PopAndDestroy(bitty); // or just Pop, if you want to keep it around&lt;/div&gt;</description>
 <pubDate>Thu, 17 Feb 2005 15:11:31 +0100</pubDate>
 <dc:creator>Elk</dc:creator>
 <guid isPermaLink="false">comment 15302 at http://www.newlc.com</guid>
</item>
<item>
 <title>Panic due to CFbsBitmap loaded in Font and bitmap server</title>
 <link>http://www.newlc.com/topic-5607</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-5607&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://www.newlc.com/topic-5607#comments</comments>
 <category domain="http://www.newlc.com/forums/2d-3d-graphics">Bitmaps and Graphics</category>
 <pubDate>Thu, 17 Feb 2005 09:25:28 +0100</pubDate>
 <dc:creator>Niimidan-forum</dc:creator>
 <guid isPermaLink="false">6329 at http://www.newlc.com</guid>
</item>
</channel>
</rss>
