Mike Bissett wrote:

>> I have no idea what caused the RuntimeException you have reported.
>>
>> Waiting is possible. You can pass a "Wait" property in the arguments of
>> the "print" call (a boolean value with -surprise! ;-) - value "True").
>>
> Thanks the Wait property stops the error on Document close with a 
> non-headless 
> OO process, but with a headless process it produces that runtime error on a 
> second attempt and the OO process dies. Any tips on how I can debug this ?

Just to avoid misunderstanding: I assume "second attempt" means loading
another document and printing it?

Wrt. debugging: I would set a breakpoint in the close() implementation
(sfx2/source/doc/sfxbasemodel.cxx) and when the breakpoint is reached,
try to catch all exceptions thrown after that point in the debugger.
Maybe this shows where the RuntimeException is thrown. Trying to catch
all exceptions in the debugger the whole time is a useless attempt as
some components - e.g. configmanager, ucb - (mis)use exceptions as their
usual work flow and you always get loads of them.

Regards,
Mathias

-- 
Mathias Bauer (mba) - Project Lead OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS
Please don't reply to "[email protected]".
I use it for the OOo lists and only rarely read other mails sent to it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to