From: Anders Bengtsson Date: 2004-07-06T18:23:30+09:00 Subject: Re: [Q] YAML Error: stack level too deep --- "E.-R. Bruecklmeier" wrote: > Anders Bengtsson schrieb: > > You're probably writing a very deep object graph, which uses up all > the > > stack. > > One solution could be to write custom YAML emitters for some of > your > > classes, that writes the data in a more "flat" form (writing a tree > of > > objects as a list, etc.) > Thank you, for the quick answer. But i don't want to go deeper in > this > matter, i'm just looking for a quick and dirty method to serialize > large > objects in a readable manner. I guess readability could be a problem, but you could attempt to flatten the object graph even before attempting to serialize it. If you have things like linked-lists you convert them to plain arrays, etc. Or maybe you can increase the stack size in some way? (I don't know how that's done in Windows). /Anders ===== __________________________________________________ Anders Bengtsson ndrsbngtssn@yahoo.se Stockholm, Sweden H�strusk och gr� moln - k�p en resa till solen p� Yahoo! Resor p� adressen http://se.docs.yahoo.com/travel/index.html