C++ Debug Problem

S

Scott Metzger

Hi,

I am having some weird behavior when stepping through the following code....

short cellExists;
short rowCount;
vsoShape->RowCount(visSectionProp, &rowCount);
for (int i=numFeatures; i<rowCount; i++)
{
CVisioCell cellValue;
CVisioCell cellLabel;
vsoShape->CellsSRC(visSectionProp, visRowProp + i,
visCustPropsValue, cellValue);
vsoShape->CellsSRC(visSectionProp, visRowProp + i,
visCustPropsLabel, cellLabel);

VBstr vbstrLabel;
VBstr vbstrValue;
cellLabel.getFormula(vbstrLabel);
cellValue.getFormula(vbstrValue);
int iValue = VBstrToInt(&vbstrValue);
}

When I step through the code I get NULLs for my VisioCells and labels
after 5 or 6 times through the loop. However, if I don't have a break
point set and let it just run through it works fine.

Anyone have any ideas?

Thanks,
Scott Metzger
 

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