Results 1 to 2 of 2

Thread: Handles, handles, why so many handles?

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    7
    Using Automation and Word 2000, creating a word.application object, opening a file, saving a file. Doing this over list of files in list box, about 2500 times. It is creating thousands of Handles (which I see using Win NT performance Monitor, handle Count of running vb process.

    Obviously, not a good thing. Can/should I kill these handles? If so, how?

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    Try creating only one Word.Application object, and using that for all. Make sure that the files are closed after saving.

    However, it's not the handle count that's important, more the resource load. Since you're on NT, you'll have less problems than someone on 98.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

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