Results 1 to 3 of 3

Thread: Word Application NOT Disposing in VB.NET

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216

    Question Word Application NOT Disposing in VB.NET

    In vb.net I am opening (800+) Word docs. But when I am finished I am setting to nothing the Word Applciation and in the Task Manager it is still there. Why?

    Code:
    Dim wrdApp As New Word.Application
    'etc.......
    Dim wrdDoc As New Word.Document
    wrdDoc = wrdApp.Documents.Open(fiTemp.FullName, , True)
    'etc.......
    wrdDoc.Close(False)
    wrdDoc = Nothing
    
    wrdApp = Nothing

  2. #2
    Lively Member
    Join Date
    Sep 2003
    Location
    Chicago, IL
    Posts
    64
    i have never used Word.Application, but is there a method to close the app object you created and then set to Nothing?
    Mike Stammer

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Jan 2001
    Location
    Florida
    Posts
    3,216
    there is no Close for this object

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