I am trying to set up a notification program that will check database tables for invalid values and send Groupwise emails if there are any problems with the data. This program runs every 15 minutes, using a timer. The program runs fine the first time--it gets the bad data, puts it in an email message, and sends the message successfully. However, it will only do this once. After it has run once, it gives an error every time it tries to run after that: 'Project [projectname] raised exception class EOleException with message 'Operation aborted'.' It seems to crash on the line:
GWUserObj := GroupWiseObj.Login('[username]','[password]');
The code to create the ComObj is:
GroupWiseObj := CreateOleObject('NovellGroupWareSession');
If anyone could offer an explanation for this problem, I would greatly appreciate it. Thanks!