StillUsingNotes
New Member
- Joined
- May 4, 2010
- Messages
- 13
For seven years, we have been running a wonderful report-creation program frequently. It use the COM interface to automate Excel. It runs for many hours, so debugging is difficult.
Ever since we moved up to Windows 7, it has started to pop up "Automation Error" boxes after several hours of running. It does this sporadically ; the exact same report may run OK on the next try. (We have confirmed that repeatedly.)
I am looking for general advice about possible causes for these, and advice for further analysis, and advice for possible workarounds.
The main user believes that his usage of Excel itself during the run may tend to cause these errors. We do find that running it overnight on an untouched machine, it does not bomb off. Unfortunately, we need to run it ASAP when we run it, and, the user must use Excel constantly all day.
The COM code creates its own instance of Excel, so it "should not" have any interaction with his foreground Excel session. OTOH, we have found that similar code running on Windows Server 2008 was bombing until we tweaked a "desktop" configuration for Excel, a well-known kluge which is detailed elsewhere.
The code that automates Excel via COM is in LotusScript, and it runs in the "background" of the Lotus Notes client.
Ever since we moved up to Windows 7, it has started to pop up "Automation Error" boxes after several hours of running. It does this sporadically ; the exact same report may run OK on the next try. (We have confirmed that repeatedly.)
I am looking for general advice about possible causes for these, and advice for further analysis, and advice for possible workarounds.
The main user believes that his usage of Excel itself during the run may tend to cause these errors. We do find that running it overnight on an untouched machine, it does not bomb off. Unfortunately, we need to run it ASAP when we run it, and, the user must use Excel constantly all day.
The COM code creates its own instance of Excel, so it "should not" have any interaction with his foreground Excel session. OTOH, we have found that similar code running on Windows Server 2008 was bombing until we tweaked a "desktop" configuration for Excel, a well-known kluge which is detailed elsewhere.
The code that automates Excel via COM is in LotusScript, and it runs in the "background" of the Lotus Notes client.