×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    application panic.

    Hello, im sorry in advance for a noobish question, but here it goes:

    any generic .h file:
    struct stuff
    {
    int x;
    int y;
    };

    stuff stuffArray[16000];

    this works just fine on PC, but not on symbian. Application just doesnt start.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,344

    Re: application panic.

    Nokia Developer Wiki Moderation team

  3. #3
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: application panic.

    You're simply allocating too much storage in the stack. I believe the reference given below may tell you how to adjust the stack size, but it's not generally a good idea (in any environment) to allocate that much stack storage.

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: application panic.

    changed values to following and still same result

    EPOCSTACKSIZE 0x14000
    EPOCHEAPSIZE 0x020000 0x800000

  5. #5
    Super Contributor
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: application panic.

    But you're allocating 1F400 bytes.

  6. #6
    Super Contributor
    Join Date
    Oct 2009
    Posts
    4,326

    Re: application panic.

    Quote Originally Posted by danhicksbyron View Post
    But you're allocating 1F400 bytes.
    Yes, this is true, 16000 * 2 * 4 = 0x1F400. Allocation of array of 16000 on the stack is always a bad idea.

  7. #7
    Registered User
    Join Date
    Mar 2010
    Posts
    9

    Re: application panic.

    oops, my bad.

    thank you for clearing all this

Similar Threads

  1. Replies: 3
    Last Post: 2009-07-17, 12:38
  2. panic while exiting the application
    By krushived in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-01-13, 06:16
  3. Alloc Panic while exiting application..
    By rohanwaugh in forum Symbian
    Replies: 4
    Last Post: 2009-01-07, 11:05
  4. Replies: 4
    Last Post: 2007-05-12, 06:45
  5. Application without icon in application menu
    By iulian_moldovan in forum Symbian
    Replies: 3
    Last Post: 2006-12-14, 09:38

Posting Permissions

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