[Geany-Devel] [geany/geany-plugins] 6c2b0c: Debugger: Prevent crash when re-loading plugin
mbrush at xxxxx
Sun Sep 1 20:15:00 UTC 2013
On 13-09-01 10:57 AM, Dimitar Zhekov wrote:
> On Sat, 31 Aug 2013 20:33:50 -0000
> Matthew Brush <git-noreply at geany.org> wrote:
>> Debugger provides own GtkCellRenderer GTypes so its module must
>> remain resident
>> + plugin_module_make_resident(geany_plugin);
> Note that when a resident module is unloaded and then reloaded (uncheck
> then check  Debugger), the global variables are not re-initialized.
> So, if debugger contains any global "[static] type variable = value",
> or relies on globals being 0, they must be initialized explicitly.
Thanks for mentioning, I'll check. That might good information to add as
a @note in the API docs for `plugin_module_make_resident`.
More information about the Devel