Restoring picture from Stream

Login to reply to this topic.
Thu, 2005-05-19 16:08
Joined: 2004-11-15
Forum posts: 25
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

  • Login to reply to this topic.