SyncObject.Start fails: An object could not be found.

  • Thread starter Thread starter Composer
  • Start date Start date
C

Composer

Automating Outlook 2000. Sometimes I get the following error once or
twice when first using the SyncObject.Start instruction:

Run-time error '-1940651765 (8c54010b)';
The operation failed. An object could not be found.

(The highlighted line of code is the SyncObject.Start code.)

Whenever I get past this error (using F8 to step through the code), it
works fine until I restart my application. It's as though the
SyncObject is not really there for the first few seconds, despite the
proof that it IS there: I can see it in the Locals window, and its
Name property has previously been checked via Debug.Print

Although I can get past this line of code, the result is unacceptable;
my newly created mail item remains in the Drafts folder. (I put it
there using Redemption.)
 
PS. I'm aware of MS Knowledge Base article 241917 which says the
resolution is to "Set an object variable to the SyncObjects collection,
set an object variable to the individual syncronization profile you
want to use, and then use the Start method on the SyncObject variable".

But this does not fix the problem!
 
Back
Top