×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    35

    how to find stack size of a RThread

    hai all,

    I have a as follows.

    RThread thd.
    thd.Create(_L("SysThread"),SysThread, 1024 * 70, NULL,NULL);

    And i want to find stackinfo and i did as follows

    TInt res = thd.StackInfo(stackinfo);
    TInt stackusage = (stackinfo.iBase-stackinfo.iLimit);

    When i print stackusage value it is giving 73728 octates(72 kb??).
    Eventhogh i gave 70kb how would it became 72kb???.



    Any help will be appreciated greatly.


    Regards,
    sivareddy.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,674

    Re: how to find stack size of a RThread

    It is probably about 4-kiloByte memory pages.

Similar Threads

  1. What is max size of Stack in S60 3 rd addition?
    By bnvaikos in forum Symbian Signed Support, Application Packaging and Distribution and Security
    Replies: 9
    Last Post: 2006-12-13, 11:39
  2. How to reproduce the device stack size limit on emulator?
    By loquendo in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 3
    Last Post: 2006-12-05, 10:43
  3. change stack size
    By luoxi in forum Symbian
    Replies: 3
    Last Post: 2005-09-01, 05:06
  4. exe stack size
    By cbrueckner in forum Symbian
    Replies: 0
    Last Post: 2003-09-12, 11:44

Posting Permissions

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