Message "The stub received bad data" in XP SP2, Safearrays used

E

EdDev

beginning with Windows XP SP2 I got a problem concerning Safearrays in
my Software.
Using Windows XP SP1 everything works fine.
I call via COM another application to start the communication via
serial interface to an external device,

For this I use the technic of Safearray and with the following
settings:
m_sArray.cDims = 1;
m_sArray.fFeatures = FADF_AUTO | FADF_FIXEDSIZE | FADF_HAVEVARTYPE;
m_sArray.cbElements = 1;
m_sArray.cLocks = 0;
m_sArray.pvData = pData;
m_sArray.rgsabound[0].lLbound = 0;
m_sArray.rgsabound[0].cElements = len;
m_pArray = &m_sArray;
m_variant.vt = VT_ARRAY | VT_BYREF;
m_variant.pparray = &m_pArray;

Obviously the safearray can be sent but the following error behavior
appears:
hr=800706f7, Code meaning: The stub received bad data.

An idea?
Where can this come from?
Can anyone help me?
 

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