Hello,
I get a KERN_EXEC 3 panic for the following piece of code in my app:
TInt err = iBitmap->Load(KCardsFile, iPlayerHand[i]);
if(KErrNone != err)
{
RDebug::Printf("Error Loading File %s\n", KCardsFile);
}
else if(KErrNone == err)
{
gc.DrawBitmap(rect, iBitmap);
}
The line of code highlighted in the debugger is
RDebug::Printf("Error Loading File %s\n", KCardsFile);
KCardsFile has been set to the genereated .mbm file
_LIT(KCardsFile, "\resources\apps\\Cards.mbm");
The stack trace at the time of panic shows the variable values as follows:
this 0x43194bcc
CCoeControl 0x43194BCC
iBitmap 0x43194e80
CBase 0x43194E80
iFbs 0x43190734
iAddressPointer 0x00000000
iFlags 0
iUseCount 0
iHandle 0
iServerHandle 0
iBitmapError 0
iDeckOfCards 0x43194c74
iPlayerHand
iPhoneHand
iNumPlayerCards 3
iNumPhoneCards 3
iPlayerWins 0
iPhoneWins 0
iGameMode EModePlaying
KCardsFile 0x004082B0
rect 0x4315D958
gc 0x43190FE8
i 0
err -28
I am not sure why I get this panic. Any suggestions would be appreciated.
TIA
Vin




