Restoring picture from Stream
| Thu, 2005-05-19 16:08 | |
|
hi all,
I am trying to restore a picture from the stream but its leaving when I am internalizing. I could not figure out the reason. Code given below is the function which is doing the job in "class CMyPicture :public CPicture". what could be reasons of leaving and how the problem can be resolved? <code> CMyPicture* CMyPicture::NewL(TPictureHeader& aHeader, const CStreamStore& aDeferredPictureStore) { RStoreReadStream stream; stream.OpenLC(aDeferredPictureStore,aHeader.iPicture.AsId()); //Internalize(stream); TSwizzle<CMyPicture> pic; // // ITS LEAVING HERE // stream >> pic; CleanupStack::PopAndDestroy(); return pic; } </code> thanks in advance. dotcdotc |
|





