title: Symbian C++ - Load and display image from .mbm file
body: <p>I have a .mbm file that I copy to my device using this line in the .pkg file</p>
  
  <pre><code>"$(EPOCROOT)epoc32\data\z\resource\apps\MyApp.mbm" -"!:\resource\apps\MyApp.mbm"
  </code></pre>
  
  <p>Then in the draw function of my container I do this..</p>
  
  <pre><code>_LIT(KMBMFile , "\\resource\\apps\\MyApp.mbm" );
  CFbsBitmap* iBitmap;
  
  iBitmap-&gt;Load(KMBMFile, 0);
  gc.BitBlt(Rect().iTl, iBitmap);
  </code></pre>
  
  <p>However the line <code>iBitmap-&gt;Load(KMBMFile, 0);</code> raises a KERN-EXEC:0 PANIC</p>
  
  <p>"This panic is raised when the Kernel cannot find an object in the object index for the current process or current thread using the specified object index number (the raw handle number)."</p>
  
  <p>Can anyone spot where I am going wrong?</p>
  
  <p>Thanks!</p>