objects staying in memory - RESOLVED
what do people here think is the best way to remove an object from memory? for example, if have:
Code:
Dim wrdApp As New Word.Application()
Dim wrdDoc As Word.Document
:
:
:
:
wrdDoc = Nothing
wrdApp = Nothing
now when i step through the code with the windows task manager open (viewing processes), I see winword.exe appear after the line "dim wrdApp" in the code.
however, after i set wrdApp to nothing, the file is still running around. hence after running this code 6 times, i have 6 different instances of winword.exe running.
i have tried using GC.Dispose but this too does nothing to the processes.
does anyone have any better ideas or suggestions?