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 !!!
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 !!!