Hi Doug, I had a script which hooked these same events, and it was hanging on me at one time. the problem was that the summary event calls the fieldName event, but I didn't know it at the time, and could end up in an infinite loop. I'm mentioning it just in case you aren't aware of this relationship.
Chip -----Original Message----- From: Doug Lee [mailto:doug....@ssbbartgroup.com] Sent: Wednesday, August 12, 2009 10:11 PM To: gw-scripting@gwmicro.com Subject: Tracking down a hang-on-exit issue in an app script I've had an app script hang hard twice on app close (out of many many script reloads and a fair number of actual app shutdowns without incident). When it happens, the machine becomes sluggish, there's no speech, and the only solution I've found is to shut down Window-Eyes via the Task Manager (my method being Ctrl-Shift-Esc, hope the correct tab is active, type "wineyes" but not too fast or too slow, type Alt-E, pause, type Alt-E again, pause, press Space, wait for the dust to settle). The script hooks OnObjectFocus, OnChildFieldName/Data and OnChildSummary from the Desktop window (but each has code to avoid doing anything if window.process.processID <> clientInformation.applicationProcess.processID), and OnStateChange for the shared objects. The hangs only occur rarely and always when I shut down the application. I'm assuming this is some sort of script loop, but that's hard to prove. Any suggestions as to where to look first? -- Doug Lee, Senior Accessibility Programmer SSB BART Group - Accessibility-on-Demand mailto:doug....@ssbbartgroup.com http://www.ssbbartgroup.com "While they were saying among themselves it cannot be done, it was done." --Helen Keller