Please HELP - Access violation in an Invoke call

A

Aggie

I have an Excel COM Add-in that is causing an access violation when I call
the Invoke method of an IDispatch pointer. The IDispatch pointer points to a
Range object and the exception occurs when I'm trying to set the Value
property of the Range.

The pointer seems to be correctly initialized as I'm getting it from a
previous call to Invoke method which is returning an S_OK in the HRESULT and
the DISPARAMS parameter is set OK.

In fact, it works some times, but suddenly it fails with an access violation
exception.

So, why can this be happening?

Do you have any ideas? or anything that can help me to solve this problem?

PLEASE !!!
 

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