
Originally Posted by
vineet.jain
A wild guess may be the missing CleanUpStack::Pop() statement required after utilizing StringLoader::LoadLC.
Actually it depends on whether to use Cleanupstack::Pop() or PopAndDestroy() but i am using it but app is still crashing on device.
Let me give you exact picture of it. Here is where i am using it.
Code:
TBuf<40> itemText;
_LIT( KListItemFormat,"0\t%S\t");
HBufC* buf_dialer = StringLoader::LoadLC(R_DIALER);
TBuf<25> buffer(_L(""));
itemText.Format( KListItemFormat(), *buf_dialer, &buffer );
// Appended itemText to a descriptor array
Cleanupstack::PopAndDestroy(buf_dialer);
Do you see anything wrong here?
Thanks for suggestions.
Raj