Received oleexception(-2147417851) when calling editdocument

use activex calls lotus to create a new mail. received OleException(-2147417851) when calling EditDocument. However, this does not happen everytime. Any help will be appreciate, Thanks.