Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User dstl1128's Avatar
    Join Date
    Jun 2005
    Posts
    4
    Hi all. I'm using CImageDecoder, and after I issue a call to Convert(...) I get this panic.

    Code:
    // _fi is TFrameInfo
    // _fn is TInt (frame number)
    // _pbmp, _pmask is CFbsBitmap*
    // GifLoader is CActive derivative
    // _pdecoder is CImageDecoder*
    void GifLoader::ReadOneFrame()
    {
    	logger.Write(_L("ReadOneFrame() start"));
    	_fi = _pdecoder->FrameInfo(_fn);
    
    	TRect rc = _fi.iFrameCoordsInPixels;
    
    	_pbmp = new (ELeave) CFbsBitmap;
    	CleanupStack::PushL(_pbmp);
    
    	_pmask = new (ELeave) CFbsBitmap;
    	CleanupStack::PushL(_pmask);
    
    	_pbmp->Create(rc.Size(), EColor4K);
    	_pmask->Create(rc.Size(), EGray256);
    
    	CleanupStack::Pop(2);
    
    	logger.Write(_L("Convert()"));
    	_pdecoder->Convert(&iStatus, *_pbmp, *_pmask, _fn);
    
    	logger.Write(_L("SetActive()"));
    	SetActive();
    
    	logger.Write(_L("ReadOneFrame() end"));
    }
    My log file doesn't show SetActive(). Any problem with my code? Or is it some other problem causes it? I've hard time finding the info about "ImageConversion 9" error reported from Nokia 6600. I'm using SDK2.0-FP2.


    [EDIT] Sorry. Mistake in source code. Created _pbmp twice.
    Last edited by dstl1128; 2005-07-28 at 06:27.

  2. #2
    Registered User sergey.kish's Avatar
    Join Date
    Aug 2007
    Posts
    4
    Ups! Missing theme...
    looking for destroying this post...
    Last edited by sergey.kish; 2007-08-28 at 13:46. Reason: missing

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved