Hi
I'm trying to write a spellchecker and I'm using the MS Word 9 object library. My problem is that I can't seem to close the word object after I've finished with it. This results in many instances of the word process which evenually eats all of my pc's memory.
Here is an example of my code:
Anyone know what I can do to kill the process? Any ideas appreciated.
Beck
I'm trying to write a spellchecker and I'm using the MS Word 9 object library. My problem is that I can't seem to close the word object after I've finished with it. This results in many instances of the word process which evenually eats all of my pc's memory.
Here is an example of my code:
Code:
'the variable 'str' is parsed to the function
Dim oWord As New Word.Application
dim bln as boolean
bln = oWord.CheckSpelling(str, , False)
'
'rest of spellcheck stuff
'
oWord.Quit
Set oWord = Nothing
Anyone know what I can do to kill the process? Any ideas appreciated.
Beck