
Mon, 04/28/2008 - 17:51
Forums:
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
Mathias
Mon, 04/28/2008 - 18:17
Probably shapelist and shapelisthelpers refer to the same variable.
Mon, 04/28/2008 - 18:27
thanks this was exactlly the problem... lol spend a long time on this little problem... thanks again