[Vala] Unregister a GType
- From: Igor Azevedo <igor azevedo neticle pt>
- To: Vala-list <vala-list gnome org>
- Subject: [Vala] Unregister a GType
- Date: Sat, 4 May 2013 16:29:33 +0000
Hello,
I'm developing an application that dynamically loads plugins using GModule.
Each of the plugins registers it's own GTypes but if I load, unload, and
finally reload them I get some errors and the modules don't load properly.
Errors are:
(process:21259): GLib-GObject-WARNING **: cannot register existing type
`NeticleInfinityModulesBaseBaseModule'
I understand why this happens, I'm registering a GType that was already
registered previously when I first loaded the plugin and even after
unloading the module, the types remained registered, so it obviously fails.
My question is if there is any way to unregister a GType so I can reload
the plugin successfully?
Thanks,
Igor Azevedo
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]