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

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.)
 
C

Composer

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top