×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    58

    How to Increase WRT Stack Size

    Hi,

    I ran into some stack overflow while loading javascript. The wrt stack size seem to be around 80!. Is there a way to increase it?. A simple test done with the following code failed at 80. Earlier I was using some dojo objects esp. dojo.require and this seem to fail for the same reason as dojo does need ample stack space for its working.

    I am using S60 FP2 on N75.

    Any ideas?

    Thanks

    Murali

    // stack test code
    function recurse(n) {
    if (n > 0) {
    return recurse(n - 1);
    }
    return 0;
    }

    try {
    recurse(80);
    alert("stack-allocated");
    } catch(e) {
    alert("stack-overflow");
    }

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2007
    Location
    Rome, Italy
    Posts
    2,405

    Re: How to Increase WRT Stack Size

    Hi rmuralidharan,

    I think it's not possible to modify runtime properties as the recursion limit, as in any other desktop or mobile browsers. In this cases, iteration usually represents the only viable option.

    Pit

Similar Threads

  1. FATAL ERROR - Applet 17 with certain png's
    By OneNineStudios in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2008-12-17, 13:11
  2. Stack Size of WRT
    By lakiolen in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2008-07-28, 22:45
  3. Audio Input Stream on N80
    By tkaihock in forum Symbian Media (Closed)
    Replies: 9
    Last Post: 2006-06-30, 09:15
  4. increase process stack size...help
    By ManOfSteel in forum Symbian C++
    Replies: 5
    Last Post: 2004-09-09, 09:43
  5. exe stack size
    By cbrueckner in forum Symbian C++
    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
  •