From: Eric Hodel Date: 2003-03-11T08:22:14+09:00 Subject: Killing an WIN32OLE IE Object --NZiXfHLGvOGtDZMn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I've written a nifty little script that loads a list of URLs in IE, and times how long it takes to download and render them (and all their images). There are two ways to do this, spawn a new IE for every link, or reuse the same IE. If I spawn a new IE every time, the IE that I call #Quit on doesn't die until the script terminates, which seems to cause OLE runtime errors about invoking a synchronous call before an asynchronous one completes (in navigate()). If I sleep, then IE freezes also, so I'm left with just retrying until I get lucky. If I reuse the same IE every time, the cache never seems to get cleared, so the page load time ends up being totally bogus. (I'm guessing IE doesn't release all of its filehandles...) To get to the point, how can I force a WIN32OLE object to wait until a method completes properly? (specifically ie.quit) --=20 Eric Hodel - drbrain@segment7.net - http://segment7.net All messages signed with fingerprint: FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04 --NZiXfHLGvOGtDZMn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+bR4kMypVHHlsnwQRAomoAKDzlXgFCbRx8M+clZwvPZ4Iha5XYwCeKgXN gYcvHxaSRovLSg8uaejtcog= =TiXt -----END PGP SIGNATURE----- --NZiXfHLGvOGtDZMn--