Microsoft KB Archive/70736

UtilGetSpelling Macro Gives Out of Memory Error PSS ID Number: Q70736 Article last modified on 07-14-1994

1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

WINDOWS

Summary:

Running a macro in Word for Windows that uses the UtilGetSpelling function may return an out of memory error message.

More Information:

Steps to Reproduce Problem
  Create the following macro: Sub Main Dim a$(10) Print UtilGetSpelling(a$) End Sub   Open up a new document.   Type: We the People   Run the above macro. 

The result of running this macro is an out of memory error message. The result should be a -1 printed in the status bar.

The UtilGetSpelling(a$) fills the array (a$ ) with all available spellings of a word. The command returns 0 (zero) if the word is spelled correctly and -1 if the word was not found in the dictionary.

When “We the People” is highlighted first and then the macro is run, -1 is displayed in the status bar as expected.

Microsoft has confirmed this to be a problem in Word for Windows versions 1.00, 1.10, and 1.10a. We are researching this problem and will post new information here as it becomes available.

Reference(s):

“Microsoft Word for Windows and OS/2 Technical Reference,” page 274.

Additional reference words: w4wproof w4wmacro winword 1.00 1.10 1.10a 2.00 2.00a 2.00a-CD 2.00b 2.00c

=
================================================================

Copyright Microsoft Corporation 1994.