$ 0 0 Assuming you are not reusing the same vector of text part ids without clearing it before second call to GetTextPartIds(), post code.