You need to implement register-object for your metaclass, only standard classes are 'registered' or kept in the ID table.
Ian On Mar 18, 2009, at 11:31 PM, Elliott Slaughter wrote: > Hi, > > I have been exploring using snapshot-set in my application, and > noticed a couple of issues. > > First, snapshot set doesn't compile under SBCL since the cache > initform includes > > (make-hash-table :weak-keys t) > > and SBCL doesn't recognize the :weak-keys argument. This is easily > enough fixed (in the short term) by commenting this out; in the long > term it may be useful to use trivial-garbage for weak hash-tables. > > > Second, after hacking snapshot-set into my application, and > following a pause of about 30 seconds, > > debugger invoked on a SB-KERNEL::CONTROL-STACK-EXHAUSTED: > Control stack exhausted (no more space for function call frames). > This is probably due to heavily nested or infinitely recursive > function > calls, or a tail call that SBCL cannot or has not optimized away. > > This is on a data set of roughly 2000 objects. The data consists of > a hash-table from symbols to hash-tables, which map integers to > instances of a custom metaclass. The data contains circular > references. (I don't know how complete snapshot-set is, so I don't > know if any of these are potentially problematic.) > > I would include the backtrace except it is over 30,000 calls long. I > can give the code that calls snapshot-set if that would be helpful. > > > Any advice or assistance would be appreciated. Thanks. > > -- > Elliott Slaughter > > "Any road followed precisely to its end leads precisely nowhere." - > Frank Herbert > _______________________________________________ > elephant-devel site list > elephant-devel@common-lisp.net > http://common-lisp.net/mailman/listinfo/elephant-devel _______________________________________________ elephant-devel site list elephant-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/elephant-devel