hello,

I'm playing with libmapi event notification and I stuck in a strange behavior.
After calling Subscribe() on the logged user mailbox, I get an error
in the next message/task (IPM.Task) creation:
the SaveChangesMessage() fails with error MAPI_E_CALL_FAILED. The call
to emsmdb_transaction() used internally by SaveChangesMessage() fails
with errocode C000000D (NT_STATUS_INVALID_PARAMETER) and enabling the
libmapi debug I get a:

ndr_pull_error(2): Bad switch value 49156

while processing the rpc reply data for said SaveChangesMessage().

The task is indeed created: I can see it from Outlook. An equivalent
Task creation performed before the Subscribe() call works correctly.
This happen when connecting to a MS exchange server 2003. If I run the
same code against a mapiproxy server, no error is generated.

You may find in attachment the (not so) minimal test case (the error
is generated only while creating the  3rd message)

Am I misusing the libmapi interface ?!?

Thanks for any feedback,

Paolo

Attachment: failadvise.cpp
Description: Binary data

_______________________________________________
devel mailing list
[email protected]
http://mailman.openchange.org/listinfo/devel

Reply via email to