×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    22

    How to reproduce the device stack size limit on emulator?

    Hi,

    I think all the problems my C++ application is encountering while running on real devices is due to overusing the memory stack, since it happily runs on the emulator.
    On real devices I get unexpectedly a Kern-Exec 3.
    Does anybody know how to emulate a stack size limit on the debugger of CodeWarrior or Carbide.C++, in order to better trace the bad behavior?
    Thanks a lot,

    Diego

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    148

    Re: How to reproduce the device stack size limit on emulator?

    Quote Originally Posted by loquendo
    Hi,

    I think all the problems my C++ application is encountering while running on real devices is due to overusing the memory stack, since it happily runs on the emulator.
    On real devices I get unexpectedly a Kern-Exec 3.
    Does anybody know how to emulate a stack size limit on the debugger of CodeWarrior or Carbide.C++, in order to better trace the bad behavior?

    Diego
    AFAIK, the emulator's stack cannot be set to a fixed size. It will always auto-extend.

    The only thing you can do on post 9.1 os'es is to increase the stack size and check whether the problem has gone. But it is probably better to examine the code and put large locals on the heap.

  3. #3
    Registered User
    Join Date
    Sep 2005
    Posts
    22

    Re: How to reproduce the device stack size limit on emulator?

    Thanks. The stack seems to have a maximum size of 80K (0x14000), that is definetely not enough for the "legacy" C code I wrap with a Symbian C++ layer.
    On S60 2nd I could set the maximum stack size to 128K and it was fine.
    As far as I saw the new limitation is not documented but it's there. Is there any way to override it with a less strict limit?
    Thanks,

    Diego

  4. #4
    Registered User
    Join Date
    Mar 2003
    Posts
    148

    Re: How to reproduce the device stack size limit on emulator?

    Quote Originally Posted by loquendo
    Thanks. The stack seems to have a maximum size of 80K (0x14000), that is definetely not enough for the "legacy" C code I wrap with a Symbian C++ layer.
    On S60 2nd I could set the maximum stack size to 128K and it was fine.
    As far as I saw the new limitation is not documented but it's there. Is there any way to override it with a less strict limit?
    Thanks,

    Diego
    epocstacksize

Similar Threads

  1. WLAN Connection from Emulator
    By capri07 in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2007-12-13, 05:13
  2. what is the maximum amount of stack size ?
    By oncer in forum Symbian
    Replies: 7
    Last Post: 2007-02-02, 15:57
  3. Replies: 0
    Last Post: 2006-03-01, 11:25
  4. ota downloading jar size limit in 6230i
    By guylis in forum Mobile Java General
    Replies: 2
    Last Post: 2005-12-21, 08:45
  5. About control heap memory size of Emulator...
    By hataijin in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2002-08-09, 07:51

Posting Permissions

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