Carl: time_history is indeed an object type that I created. I've been able to eliminate the errors by adding an accessor function to the object and using it to get data from the object, e.g. getdata(myobj,whatever), instead of using the overloaded right index operator, e.g. myobj(whatever). It is definitely not as pretty, but at least it seems reliable. So it would seem that there is a bug in the right index operator. I also changed my code to use a function to add data to an object rather than using an overloaded + operator to combine objects. I thought this might alleviate an apparent memory leak, but I'm not sure it made any difference. Attached is the "old" code that was giving me problems. If there is something wrong with the way I was using th
e right index operator, I'd be grateful to find out.