DiscussionsIssue archiveOther usage issues

Archived discussion

list of shapes....

Other usage issuesMon, 04/28/2008 - 17:512 replies

Browse this forum
QuestionAuthor

Hi there!

I'm trying to 'collect' a list of shapes. for this i use:
______________________________________________

void CGruppen::AddPartsToIGES(TopoDS_ListOfShape& shapelisthelpers, TopoDS_ListOfShape& shapelist)
{

TopoDS_ListIteratorOfListOfShape iter(shapelist);

//////////////////// here the error occurs
for(iter.Initialize(shapelist) ; iter.More(); iter.Next())
shapelisthelpers.Append(iter.Value());

___________________________________

Now the problem is that the iterator iterats into nirvana... it doesn't stop till the memory is full than a error occurs.

Do i use the iterator right?? Can someone give me a tip?

Thanks in advance and best regards

Author

Discussion

2 archived replies

Posts are displayed in their archived order.

01Commenter-1

Probably shapelist and shapelisthelpers refer to the same variable.

02Author

thanks this was exactlly the problem... lol spend a long time on this little problem... thanks again