Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2006

    2 TRgb class variables crash app ??

    I am getting Very stange thing going on here.

    When i have 1 TRgb class variable (not using yet, just declared) it will compile and run the app fine.
    But when i add in a 2nd TRgb class variable (not using, just declared) it will compile. But will crash the app when it is run.

    Code Example:

    class CListItem : public CCoeControl {

    TRgb SelectedColor();
    TRgb UnselectedColor();
    TRgb iSelectedColor;
    TRgb iUnselectedColor; // crashes app if present even though not used

    TRgb CListItem::SelectedColor() {
    return KRgbDarkBlue; // Using this for now

    TRgb CListItem::UnselectedColor() {
    return White; // Using this for now

    Even like this the app crashes. Debug from the emulator doesn't show anthing interesting either.

    The rest of the code fully works as i have been putting it through testing, and was just adding this section onto it when i got this weird problem.

    Any insight would be appreciated


  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Oslo, Norway

    Re: 2 TRgb class variables crash app ??

    If you do not employ unsafe pointer-operations, it is likely a sign of running out of memory. Have you got the panic message?

Similar Threads

  1. Free memory and class creation
    By mcmcdonald in forum Mobile Java General
    Replies: 4
    Last Post: 2004-03-25, 09:06
  2. Out of body experience.
    By danny@tincangames.com in forum Mobile Java General
    Replies: 6
    Last Post: 2003-05-29, 12:23
  3. 7650 - go back, close my app not closing the container app
    By geran in forum Digital Rights Management & Content Downloading
    Replies: 1
    Last Post: 2002-12-05, 09:58
  4. Once more about embedded app crash
    By RST38h in forum Symbian
    Replies: 0
    Last Post: 2002-11-19, 23:31
  5. Launching an app from pJava..
    By krajag in forum PersonalJava
    Replies: 0
    Last Post: 2002-10-10, 19:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts