Beta bug (to MS team) 
Author Message
 Beta bug (to MS team)


If  WScript.Quit() is called from an event handler while the base control flow is
slept at WScript.Sleep(), WSH doesn't quite. Here is how to repro:

Set browser = WScript.CreateObject("InternetExplorer.Application", "ie_")
browser.Visible = true

' Navigate and wait until DocumentComplete occurs
browser.Navigate2 "about:blank"
WScript.Echo "Script quited"

sub ie_BeforeNavigate2(ByVal pDisp, URL, Flags, TargetFrameName, PostData,
Headers, Cancel)
  WScript.Echo "BeforeNavigate2: " & URL
end sub

sub ie_DocumentComplete(ByVal pDisp, URL)
  WScript.Echo "Document complete: " & URL
end sub

sub ie_OnQuit
  WScript.Echo "Quit"
end sub

Andrew Nosenko,
Senior Software Engineer
Mead & Company

Custom look & feel for browser windows:
MeadCo HTML printing article and samples on the MSDN:
Advanced HTML printing:

Fri, 04 Jan 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. To the MS team

2. HTA development and beta bugs

3. WSH2 beta bug? debugger breakpoints

4. WSH 2.0 Beta 1 - Known Bugs

5. wsh 5.6 beta 2 bug - floppy access during exec

6. WSH bug status (pre-WSH 5.6 beta)

7. Bug in MS download package?

8. bug in the MS JScript engine?

9. .toFixed() bug in MS JScript script engine

10. ANN. GPSText - beta - beta

11. System Scripting Host Beta 3 (Final Beta) is available for download

12. Team folder method newofficedocument


Powered by phpBB® Forum Software