Results 1 to 6 of 6

Thread: objects staying in memory - RESOLVED

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member stingrae's Avatar
    Join Date
    Apr 2002
    Location
    Sydney
    Posts
    401

    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?
    Last edited by stingrae; Mar 10th, 2003 at 06:44 PM.
    "The passion lives to keep your faith, though all are different, all are great" ... Michael Hutchence 1960-1997.

    Windows & Web Developer
    Specialising in Visual Basic .Net & Client Server Programming & Client/Customer Relations Databases
    Sutherland Shire, Sydney Australia
    www.stingrae.com.au
    Developer of Arnold - Gym & Martial Arts Database Management System
    www.gymdatabase.com.au

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width