The demo plugin calls the global function info() to try and get its own name. This worked fine before the classbuilder plugin was added, but now the demo plugin says:
"Hello World! (From the Class Builder plugin)"
Apparently because the global info() function gets bound to the first (alphabetically) loaded plugin.
The simple solution is to not call info() from inside a plugin. The attached patch offers another (somewhat ugly) solution...
- Jeff
On 07/21/2007 11:19:22 AM, Jeff Pohlmeyer wrote:
The demo plugin calls the global function info() to try and get its own name. This worked fine before the classbuilder plugin was added, but now the demo plugin says:
"Hello World! (From the Class Builder plugin)"
Apparently because the global info() function gets bound to the first (alphabetically) loaded plugin.
Thanks for reporting this, I hadn't noticed it. In my local copy I'm using the G_MODULE_BIND_LOCAL flag when opening modules and the Demo message works as expected. I'll commit this soon.
Regards, Nick
On 7/23/07, Nick Treleaven nick.treleaven@btinternet.com wrote:
In my local copy I'm using the G_MODULE_BIND_LOCAL flag when opening modules and the Demo message works as expected. I'll commit this soon.
Ah, yes - that sounds much better than the brain-damaged patch I posted! - Jeff