WD: "There is not enough memory..." Opening RTF or WordMail File

Last reviewed: February 2, 1998
Article ID: Q137158
The information in this article applies to:
  • Microsoft Word for Windows 95, version 7.0
  • Microsoft Word for Windows, versions 6.x, 7.x
  • Microsoft Word for the Macintosh, versions 6.x
  • Microsoft Word for Windows NT, version 6.0

SYMPTOMS

Word may return the following error message when attempting to open a Rich Text Format (RTF) file or an email message from Exchange Client using WordMail:

   There is not enough memory to complete the operation.

CAUSE

Word retains revisions for all open documents in memory using a global revision table. A problem currently exists in rare instances where Word writes the revision tables of more than one open document to a single document when saving as RTF. If the revision table for that document grows larger than the 64 kilobyte (KB) revision table maximum supported by the RTF reader in Word, Word cannot reopen the file.

This problem can also occur when reading e-mail messages opened from Exchange using WordMail because this transfer is also based on RTF.

This problem most commonly occurs when running Word in a network environment where a large number of documents may be open at one time.

WORKAROUND

Word

NOTE: The following workaround addresses the problem described above, but the tradeoff is that the history of revisions made to the document is lost.

Method 1: Use a WordBasic Macro to Trim the Revision Table

The following macro trims the revision table in the RTF document.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:

   http://www.microsoft.com/supportnet/refguide/

  • If you are using Word 6.x, on the File menu, click Open, and click to select the Confirm Conversions check box. In Word 7.0, on the Tools menu click Options, click the General tab, and click to select the Confirm Conversions check box.

  • Open the affected RTF file.

  • Click Text Only in the Convert File dialog box.

  • Run the following macro to trim the revision table in the RTF document.

       Sub MAIN
       
          dothis = MsgBox("This macro will delete the revision history
          table" + " from an RTF file. To do this, you must first Open
          the RTF file" + " As Text. After the macro has run, just Save
          the file and Close." + " Click OK to run the macro.", " Delete
          REVTBL ", 305)
       
          If dothis = - 1 Then
             StartOfDocument
             EditFind .Find = "{\*\revtbl", .Direction = 0, .MatchCase = 0,
                .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0, .Format =
                 0, .Wrap = 0
       
             If EditFindFound() = 0 Then
                MsgBox "No RevTbl Found"
             Else
                CharRight 1
                EditFind .Find = "}", .Direction = 0, .MatchCase =
                   0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0,
                   .Format = 0, .Wrap = 0
                CharRight 1
                mystart = GetSelStartPos()
                CharLeft 1
                EditFind .Find = "}}", .Direction = 0, .MatchCase =
                   0, .WholeWord = 0, .PatternMatch = 0, .SoundsLike = 0,
                  .Format = 0, .Wrap = 0
                CharLeft 1
                CharRight 1
                myend = GetSelEndPos()
                If myend - mystart < 100 Then
                   MsgBox "RevTbl already trimmed"
                Else
                   SetSelRange mystart, myend
                   EditClear
                   MsgBox "RevTbl successfully trimmed"
                EndIf
             EndIf
          EndIf
       
       End Sub
    
    

  • Resave the RTF file in Text Only format.

  • Reopen the RTF file as RTF.

  • Save the file in Word Document format.

    WordMail

    Turn off WordMail and read the message in Exchange. To do this, follow these steps:

    1. Start the Exchange mail client.

    2. On the Compose menu, click WordMail Options.

    3. Click to clear the Enable Word as a Mail Editor check box and click Close.

    4. Open the mail message in Exchange.

    NOTE: Disabling WordMail as the message editor allows you to open the message because Exchange does not recognize (or write) the revision table. Exchange ignores the revision table and successfully opens the message.

    To help prevent others who are using WordMail from receiving a message that has accumulated a large revision table, quit Word and Log Off from Exchange at least once a day.

    STATUS

    Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. This problem was corrected in Microsoft Word 97 for Windows and Microsoft Word 98 Macintosh Edition.

    MORE INFORMATION

    The revision table in an RTF file header can be viewed by Turning on the Confirm Conversions option, open an RTF file as Text Only, and searching for the string "\revtbl" to identify the starting point of the revision table. If a revision table contains names of authors who never actually edited the document, then the above problem has occurred.


  • Additional query words: rich text format grows expands increases
    significantly increments added entire history explodes Err=1016 revtbl
    convert converted converts converting conversion transfer transferred
    transfers transferring translate translated translates translating
    translation wpft5 word perfect
    Keywords : kbmacroexample kberrmsg kbinterop kbmacro kbnetwork kberrmsg kbmacro kbnetwork
    Version : MACINTOSH:6.x;WINDOWS:6.x,7.x
    Platform : MACINTOSH WINDOWS
    Issue type : kbbug
    Solution Type : kbfix kbworkaround


    THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

    Last reviewed: February 2, 1998
    © 1998 Microsoft Corporation. All rights reserved. Terms of Use.