On 1/12/07, J.M. Maurer <[EMAIL PROTECTED]> wrote:
On Fri, 2007-01-12 at 13:07 +0100, Robert Staudinger wrote:
> On 1/12/07, Marco Pesenti Gritti <[EMAIL PROTECTED]> wrote:
>
> [...]
>
> > The easier way to do this is probably to use start/stop functions inside
> > the main class .py. A bit of an hack but it should work... see how the
> > web activity does it.
>
> I have committed the functions abiword.init() and abiword.shutdown()
> to pyabiword. Could anyone familiar with sugar update the activity?
What does this actually do ?
Also, say we start an activity twice in the old situation, would that
load libabiword twice?
The problem is that the global abiword App instance is not shut down.
Some more elaborate testing however showed that repeated calls to
initialize() and shutdown() lead to crashes (apparently some issue
related to static variables that are repeatedly initialised).
So please refrain from calling abiword.init() / abiword.shutdown()
from python for now.
- Rob
_______________________________________________
Sugar mailing list
[email protected]
http://mailman.laptop.org/mailman/listinfo/sugar