Archive of UserLand's first discussion group, started October 5, 1998.

Re: Getting the URL of the Front IE Window w/ VBScript

Author:Brent Simmons
Posted:12/21/1998; 12:46:17 PM
Topic:Getting the URL of the Front IE Window w/ VBScript
Msg #:1592 (In response to 1583)
Prev/Next:1591 / 1593

Jim Roepcke wrote:

"Does each VBScript run in Frontier get it's own Script Control instance, or do they share one? If they share one instance, you should be able to share objects between threads."

Each thread gets its own instance -- or else it wouldn't be multi-threaded. Each instance of the Script Control can only execute one script at a time.

Sharing objects sounds nice, but I think in practice you'd get subtle, hard-to-track-down bugs due to collision and interference.

You can of course put any scripts you want in the user.com table -- if you want to share data between threads, just store the data in Frontier. Viewed a certain way, this is what Frontier is all about, storing data and content and sharing it between different threads and scripts. That doesn't change just because you're using VBScript.


There are responses to this message:


This page was archived on 6/13/2001; 4:46:53 PM.

© Copyright 1998-2001 UserLand Software, Inc.