Commit: fix this.Re: Bug: SEGV on loading "graphical" plugins @ startup


Subject: Commit: fix this.Re: Bug: SEGV on loading "graphical" plugins @ startup
From: Martin Sevior (msevior@mccubbin.ph.unimelb.edu.au)
Date: Wed Nov 07 2001 - 22:37:45 CST


CVS: ----------------------------------------------------------------------
CVS: Enter Log. Lines beginning with `CVS:' are removed automatically
CVS:
CVS: Committing in .
CVS:
CVS: Modified Files:
CVS: src/af/ev/unix/ev_UnixToolbar.cpp
CVS: src/af/ev/unix/ev_UnixToolbar.h src/af/ev/xp/ev_Menu.cpp
CVS: src/af/xap/xp/xap_App.cpp src/af/xap/xp/xap_Menu_Layouts.h
CVS: src/wp/ap/unix/ap_UnixApp.cpp src/wp/ap/unix/ap_UnixFrame.cpp
CVS: src/wp/ap/xp/ap_Menu_Layouts.cpp
CVS: ----------------------------------------------------------------------
Fix segfault on startup with plugins in autoload directory.

On Wed, 7 Nov 2001, Dom Lachowicz wrote:

> Howto: put the GDict or AikSaurus plugin in ./AbiSuite/plugins
>
> run abiword
>
> Segv because of the new menu-handling code. Basically we're trying to
> add a menu item into a non-existant menu (no frames yet). But we can't
> delay plugin loading until we have a frame (importers/exporters might be
> needed for --to, for example). Basically the labels vector in
> ev_searchMenuLabel is null (i put an assert there for easy tracking).
>
> Martin or anyone else - could you look into this for me please? We
> probably just need to load the menus into memory at some earlier point
> or do something intelligent with a callback/listener to have a specific
> plugins fully initialize on a 'Frame Load' event.
>
> Thanks,
> Dom
>
>
>
>
>



This archive was generated by hypermail 2b25 : Wed Nov 07 2001 - 22:37:54 CST