The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 Tom Kingston

Subject:

 Re: atomic operations in VBScript

Date:

 Sat, May 29, 2010 3:16:57 pm
Well, I'm sure if we thought about it enough we could come up with a more
advanced (AKA complicated) method, but if simple works then that's what I go
with. Hope it does the job for you.

Tom

----- Original Message -----
From: "Chip Orange"
To:
Sent: Saturday, May 29, 2010 2:58 PM
Subject: RE: atomic operations in VBScript


you're probably right about the global status flags working well enough.

thanks.

Chip


-----Original Message-----
From: Tom Kingston [mailto:tom.kingston@charter.net]
Sent: Saturday, May 29, 2010 1:46 PM
To: gw-scripting@gwmicro.com
Subject: Re: atomic operations in VBScript

Using On Error statements and global status flag variables should do the
trick.

Hth,
Tom

----- Original Message -----
From: "Chip Orange"
To:
Sent: Saturday, May 29, 2010 1:14 PM
Subject: RE: atomic operations in VBScript


Hi Doug,

Oh, for instance, get some info out of a particular dictionary object. I
test if it exists, and then when I go to get info out of it, I get an
error
because it no longer exists, because some other event handler has removed
it
(as it should); but these types of conflicts where objects are created
and
modified and deleted by more than one thread really could use some atomic
control, and I was wondering if anyone had already solved this issue.

It's not always dictionary objects, it another example two different
threads
need access to a single resource in a third com automation server; each
one
needs it for a few statements, before it can then be released to be used
by
another thread. without some atomic control here, they could end up
interfering with each other's use of it.

thanks.

Chip


-----Original Message-----
From: Doug Lee [mailto:doug.lee@ssbbartgroup.com]
Sent: Friday, May 28, 2010 7:26 AM
To: gw-scripting@gwmicro.com
Subject: Re: atomic operations in VBScript

What specifically are you wanting to do atomically?

On Fri, May 28, 2010 at 07:07:50AM -0400, Allison and Chip Orange wrote:
Hi all,

I need to coordinate some activity between various event handlers and
timer
generated events in a VBScript. I was wondering if there was any way of
having atomic operations in a VBScript to do this? any other
suggestions?

thanks.

Chip

--
Doug Lee, Senior Accessibility Programmer SSB BART Group -
Accessibility-on-Demand mailto:doug.lee@ssbbartgroup.com
http://www.ssbbartgroup.com "While they were saying among themselves it
cannot be done, it was done." --Helen Keller


__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5154 (20100528) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com





__________ Information from ESET NOD32 Antivirus, version of virus
signature database 5154 (20100528) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com