Are you sure the ASSERT isn't raised here?
for (int i=0; i<allhealthinsurances.size(); ++i)
{
insuranceName = allhealthinsurances.at(i)->assuredname();
newAssuredComboStringList << insuranceName;
}
for (int i=0; i<allhealthinsurances.size(); ++i)
{
insuranceName = allhealthinsurances.at(i)->assuredname();
newAssuredComboStringList << insuranceName;
}
To copy to clipboard, switch view to plain text mode
Because it makes no sense to get an index out of bounds for a pre-filled string list.
Unless the memory gets corrupted somehow.
Anyway, everything so far looks like memory violations to me.
If you get the same error if you fill the combo in the above for loop, the the error isn't in the string list. More likely in allhealthinsurances. Are you positive this is filled correctly.
What is RefPointer?
It is pretty hard to find the problem like this.
But debugging it carefully should reveal the problem.
Regards
Bookmarks