It looks like you and Lee were busy while I was watching the Rose Bowl
football game ;-)
A couple of observations after reviewing the series of posts.
1) From your Swat trace it looks to me like your stack problems are related
to your DocControl and DocGroup objects. The last piece of your code called
before the crash has to do with setting up a template directory. You might
try turning off templates.
2) Threads - The DocControl is generally in the UI thread and the DocGroup
in the process thread. Again - the DocGroup object needs to be in its own
resource. I suggest sticking with the two threads and solving the stack
problem, versus the quick psuedo-fix of dropping to one thread.
3} After saying that you got it working by dropping to a single thread, you
don't say whether your stack overflow problems have gone away running under
Swat. If they have not gone away, you still have problems. Marcus' post
holds true here.
4) Monikers - As you noticed, the USE and REPLACE messages do different
things with the monikers. Most often they are NOT interchangable.
5) TimeLock - From your Swat trace it looks like your @callsuper() comes
before your timelock code. Since the New/Open DBox is app modal, the system
is probably keeping it on top until something is done with it. Try putting
your timelock stuff before the @callsuper().
John ;-)