The following methods : ctxt.getObjectStore().unregisterNewObjects(); ctxt.getObjectStore().startTrackingNewObjects();are meant to avoid the problem but it turns out that they likely forgetreferences in some unknown places.
Not that it matters much with new 3.0 stuff, but the API above used to work just fine. Anyways, as was mentioned elsewhere, it is much easier to just create a new DataContext instance after a few thousand iterations.
Andrus
