Results 1 to 4 of 4
  1. #1
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Denmark
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Out of stack space (W2K, O2K, UK )

    I am experiencing a very odd problem and is getting rather desperate... - please help!!!

    I have three tables each as an individual autotext with some text entered in each table
    Table 1 is 11rows x 3columns table (w:82,10,82, total=174mm)
    Table 2 is 7 rows x 2 columns table (w:20,62, total=82mm)
    Table 3 is 7 rows x 4 columns table (w:25,14,25,18, total=82mm)

    In the various cells in Table 1 I have placed some bookmarks that I ".goto" and then inserts the autotext in question.
    I want to insert table 2 into cell (r3,c1) in table 1 and table 3 into cell (r3,c3) in table 1 as well.
    ..additionally I have another 6 autotexts only consisting of text. They are inserted as well into table 1, posing no problems

    Table 2 and the other autotexts are never a problem, but everytime I get to table 3 I get an "Out of stack space" and then Word crashes and closes.
    I had an indication that table 3 was corrupted, so I removed it completely and re-created it from scratch.

    I have tried to swap the order of the elements that I insert so that table 3 has been inserted both as the first element and as the last, everytime with the same outcome - a crash.
    No matter how few elements I choose to insert it crashes.

    I've been searching for possible causes to the "Out of stack space", but have so far only been able to locate very limited info on this.

    Would any know of good sources or explanations to this problem ??

    Any hint will be highly appreciated - thanks.
    Bests,
    RD


    PS: Wish there were a knob on the TV to turn up the intelligence. There's a knob called "brightness," but that doesn't work

  2. #2
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Out of stack space (W2K, O2K, UK )

    I lost my mind over out of stack space error last month.

    Your code is causing Word to literally blow its stack.

    I expect that when one inserts a table into a table cell, there's a significant use of stack space.

    Stack space errors, in practice, can be overcome only by changing the code.

    Have you used On Error to try to localize the error?
    After you localize the error, try stepping thru the code one statement at a time.

  3. #3
    3 Star Lounger
    Join Date
    Aug 2002
    Location
    Denmark
    Posts
    347
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Out of stack space (W2K, O2K, UK )

    Thanks for your reply.

    I've been monitoring my variables very closely and should be far from the limit.
    However, as I reach the .goto bookmark, I suddenly get this out of stack space error and it really puzzles me.
    Bests,
    RD


    PS: Wish there were a knob on the TV to turn up the intelligence. There's a knob called "brightness," but that doesn't work

  4. #4
    Gold Lounger
    Join Date
    Dec 2000
    Location
    New Hampshire, USA
    Posts
    3,386
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Out of stack space (W2K, O2K, UK )

    INserting a table into a table cell may be causing some recursion that causes the stack overflow.

Posting Permissions

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