Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User sathyanand's Avatar
    Join Date
    Dec 2008
    Posts
    27
    Hi All,

    I'm trying to develop a file browser application which has to open the image files. On part of it now I'm trying to convert .jpg to bitmap.

    I used CImageDecoder, CFbsBitmap and ActiveObject for conversion. But resulted in exception.

    So started to debug my code on the device, it shows (Suspended: Signal 'Exception 0' received. Description: A data abort exception has occured) on the line SetActive() which I called after iBitmap->Create(...); The code is attached below for your reference.

    Could anyone help me, how to get out of this exception.

    Thanks in advance.

    Regards,
    SA

    Code:

    void CHelloActive::BeginDecodeL(const TDesC& iFilename)
    {
    TInt errVal(KErrNone);
    TBuf8<255>MimeType;
    TRAP(errVal,CImageDecoder::GetMimeTypeFileL(iFs,iFilename,MimeType));

    if(errVal == KErrNone)
    {
    // image decoder user for reading the image file to a bitmap
    iImageDecoder = CImageDecoder::FileNewL(iFs,iFilename,MimeType);
    if(iImageDecoder->FrameCount() > 0)// check that we have image(s) in the file
    {
    iBitmap = new(ELeave)CFbsBitmap();
    iBitmap->Create(iImageDecoder->FrameInfo(0).iOverallSizeInPixels,iImageDecoder->FrameInfo(0).iFrameDisplayMode);

    iImageDecoder->Convert(&iStatus,*iBitmap,0);
    SetActive();
    }
    else
    { // indicate that we didn't find any images inside the file
    TRequestStatus* status=&iStatus;
    User::RequestComplete(status, KErrNotFound);
    SetActive();
    }
    }
    else // indicate that we had an error
    {
    TRequestStatus* status=&iStatus;
    User::RequestComplete(status, errVal);
    SetActive();
    }
    }

  2. #2
    Nokia Developer Moderator wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    You should check the panic code (http://wiki.forum.nokia.com/index.ph...ded_panic_code). The signal xy message comes from Windows, and it is about the implementation of the panic mechanism in the emulator.
    What you need is some short text and a number, like "E32USER-CBase 42" for example. Note that if the debugger is breaking into your code, the error message may be already visible at the end of the output window (where the messages are scrolling).

  3. #3
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    Also you can see this example: How to read images to Symbian bitmap. It's works correctly.
    Last edited by A.A.M.; 2009-02-01 at 12:52.

  4. #4
    Registered User sathyanand's Avatar
    Join Date
    Dec 2008
    Posts
    27
    Thanks.

    Got it....

    Regards,
    SA

  5. #5
    Registered User Streetfighter's Avatar
    Join Date
    Sep 2009
    Posts
    2
    Dear A.A.M.
    i'm really new to Symbian. Could you please help me to undestand better how to use the link you proposed??
    I've take a look at the code but I'm not able to understand how it works...

    Can you please help, posting some code of how should I use the code??
    Any help will be appreciate!!

    Thanks!!

  6. #6
    Nokia Developer Moderator A.A.M.'s Avatar
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,308
    Check following thread for answers - http://discussion.forum.nokia.com/fo...d.php?t=174240

Similar Threads

  1. Display image within a container
    By ckt in forum Symbian C++
    Replies: 6
    Last Post: 2008-11-25, 13:47
  2. desperately needs help on how to save an image in the mobile device memory
    By daregazi in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-06-23, 12:37
  3. Load an Image and Display
    By Christian V Petersen in forum Mobile Java General
    Replies: 4
    Last Post: 2005-12-06, 01:40
  4. Image display
    By zhenwe1 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2003-12-29, 05:18
  5. make an Image move over the display
    By nodevelop in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-04-21, 13:54

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