• Out of stack space (W2K, O2K, UK )

    Author
    Topic
    #401714

    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.

    Viewing 0 reply threads
    Author
    Replies
    • #793564

      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.

      • #793760

        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.

      • #793761

        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.

      • #793947

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

      • #793948

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

    Viewing 0 reply threads
    Reply To: Out of stack space (W2K, O2K, UK )

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: