Question about GModule/GTypeModule

2012-08-19 Thread W. Michael Petullo
g My{Real,OtherReal}Class dynamically using GModule/GTypeModule. So, MyClass should never really be directly instantiated. MyInterface has a property, P1, and My{Real,OtherReal}Class both override this propery. But when I run my applications, I get: Object class MyClass doesn't implement prop

Re: gmodule question

2010-05-17 Thread Kurucz István
Hello, On Mon, May 17, 2010 at 2:55 AM, Lex Trotman wrote: > On 17 May 2010 00:05, Kurucz István wrote: >> On Sun, May 16, 2010 at 11:51 AM, Lex Trotman wrote: >> > On 16 May 2010 19:45, Kurucz István wrote: >> >> On Sun, May 16, 2010 at 3:27 AM, Lex Trotman wrote: >> >> > On 16 May 2010 06:5

Re: gmodule question

2010-05-16 Thread Kurucz István
Hello, On Sun, May 16, 2010 at 11:51 AM, Lex Trotman wrote: > On 16 May 2010 19:45, Kurucz István wrote: >> On Sun, May 16, 2010 at 3:27 AM, Lex Trotman wrote: >> > On 16 May 2010 06:56, Kurucz István wrote: >> >> I would use a string in my modul >> >> >> >> in my module: >> >> G_MODULE_EXPORT

Re: gmodule question

2010-05-16 Thread Lex Trotman
On 16 May 2010 19:45, Kurucz István wrote: > Hello, > > On Sun, May 16, 2010 at 3:27 AM, Lex Trotman wrote: > > On 16 May 2010 06:56, Kurucz István wrote: > >> I would use a string in my modu > >> > >> in my module: > >> G_MODULE_EXPORT extern const gchar *foobar_name = "foobar"; > >> > >> > >>

Re: gmodule question

2010-05-16 Thread Kurucz István
Hello, On Sun, May 16, 2010 at 3:27 AM, Lex Trotman wrote: > On 16 May 2010 06:56, Kurucz István wrote: >> I would use a string in my module: >> >> in my module: >> G_MODULE_EXPORT extern const gchar *foobar_name = "foobar"; >> >> >> in main application: >> >> gchar* test; >> g_module_symbol(mod

gmodule question

2010-05-15 Thread Kurucz István
Hello, I would use a string in my module: in my module: G_MODULE_EXPORT extern const gchar *foobar_name = "foobar"; in main application: gchar* test; g_module_symbol(module, "foobar_name", (gpointer*)&test); if (test) g_message("++ %s ++", test); But wrong, pointer contain bad addres

Re: gmodule for wince

2009-04-26 Thread Tor Lillqvist
> But this file cause some problems with the functions GetProcAddress and > LoadLibrary. The confusions > results from the call of these functions of the wide char type > GetProcAddressW and LoadLibraryW at > the compile process. But the used strings are not wide char strings. Are you compiling

gmodule for wince

2009-04-26 Thread Schneider Hanro
I use the gmodule library to manage plugins with windows mobile with mingw32ce. Only the sub file gmodule-win32.c exists for that. But this file cause some problems with the functions GetProcAddress and LoadLibrary. The confusions results from the call of these functions of the wide char type

Re: GModule unloading

2007-05-23 Thread Michael Ekstrand
On Wed, 2007-05-23 at 10:32 -0500, Matt Hoosier wrote: > On 5/23/07, Michael Ekstrand <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-05-23 at 10:18 -0500, Matt Hoosier wrote: > > > Often these things will link against shared libraries which the main > > > shell application itself doesn't. So I'm

Re: GModule unloading

2007-05-23 Thread Yeti
atically > like any other shared library does. > > Now some GModule comes along and happens to dynamically link against > libboo. The application which loads this module does not itself > require libboo. So at the time that the module is dlopen()ed under the > hood, libboo gets d

Re: GModule unloading

2007-05-23 Thread Matt Hoosier
On 5/23/07, Michael Ekstrand <[EMAIL PROTECTED]> wrote: > On Wed, 2007-05-23 at 10:18 -0500, Matt Hoosier wrote: > > On 5/23/07, Paul Davis <[EMAIL PROTECTED]> wrote: > > > On Wed, 2007-05-23 at 09:33 -0500, Matt Hoosier wrote: > > > > What happens when

Re: GModule unloading

2007-05-23 Thread Michael Ekstrand
On Wed, 2007-05-23 at 10:18 -0500, Matt Hoosier wrote: > On 5/23/07, Paul Davis <[EMAIL PROTECTED]> wrote: > > On Wed, 2007-05-23 at 09:33 -0500, Matt Hoosier wrote: > > > What happens when the GModule is unloaded? Does libboo also get > dumped > > > because the

Re: GModule unloading

2007-05-23 Thread Matt Hoosier
gt; It's DSO is /usr/lib/libboo.so.0.1.2. Boo registers GTypes statically > > like any other shared library does. > > > > Now some GModule comes along and happens to dynamically link against > > libboo. The application which loads this module does not itself > >

Re: GModule unloading

2007-05-23 Thread Paul Davis
t; like any other shared library does. > > Now some GModule comes along and happens to dynamically link against > libboo. The application which loads this module does not itself > require libboo. So at the time that the module is dlopen()ed under the > hood, libboo gets dynamically loa

Re: GModule unloading

2007-05-23 Thread Matt Hoosier
On 5/23/07, David Nečas (Yeti) <[EMAIL PROTECTED]> wrote: > On Tue, May 22, 2007 at 09:32:47AM -0500, Matt Hoosier wrote: > > When a GModule is closed, are any shared libraries which it alone > > required also opportunistically unmapped? > > > > I'm trying to

Re: GModule unloading

2007-05-23 Thread Yeti
On Tue, May 22, 2007 at 09:32:47AM -0500, Matt Hoosier wrote: > When a GModule is closed, are any shared libraries which it alone > required also opportunistically unmapped? > > I'm trying to determine whether to mark a module as permanently > resident. The code which lives di

GModule unloading

2007-05-22 Thread Matt Hoosier
Hi, When a GModule is closed, are any shared libraries which it alone required also opportunistically unmapped? I'm trying to determine whether to mark a module as permanently resident. The code which lives directly in the plugin won't contribute any static data, but the plugin will

Why does calling glibtop_init() inside a GModule not work?

2006-10-16 Thread Christ, Bryan
I am trying to call glibtop_init() during the loading phase of a GModule. The routine is placed in g_module_check_init(). When I remove the routine, the module successfully loads. I suspect that glibtop_init() can't access glibtop_global_server for some reason. Anyone? help.

Re: gmodule help

2006-04-07 Thread Rick Jones
Greg Steffensen wrote: Thanks- its actually quite simple. In case anyone else searches for info on this, on Linux, shared libraries usable with gmodule are compiled via gcc -shared -fPIC -o libmylib.so libmylib.c `pkg-config --cflags --libs glib-2.0` drifting a bit - i have found that

Re: gmodule help

2006-04-07 Thread Greg Steffensen
Thanks- its actually quite simple.  In case anyone else searches for info on this, on Linux, shared libraries usable with gmodule are compiled viagcc -shared -fPIC -o libmylib.so libmylib.c `pkg-config --cflags --libs glib-2.0`The pkg-config arguments may need to be tweaked depending on your

Re: gmodule help

2006-04-07 Thread Rick Jones
Greg Steffensen wrote: Hey, I'm trying to use gmodule, but am unfamiliar with libtool and linking, and am unsure about what compilation commands to use (I've gone through the libtool info pages, but still can't quite get it to work). Can anyone tell me how to compile a single s

gmodule help

2006-04-07 Thread Greg Steffensen
Hey, I'm trying to use gmodule, but am unfamiliar with libtool and linking, and am unsure about what compilation commands to use (I've gone through the libtool info pages, but still can't quite get it to work).  Can anyone tell me how to compile a single source file that uses glib a

Re: GModule

2004-11-15 Thread David Necas (Yeti)
nows where I can get helped on glib and my problem on > > GModule : > > > > I'm trying to use GModule in a special way : > > - I need to open several instances of a same module > > - Different modules may have identical symbols : > > this is probably now pos

Re: GModule

2004-11-15 Thread Tristan Van Berkom
On Mon, 15 Nov 2004 17:07:17 +0100 (CET), [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > I don't know if this list deals with glib, it seems to deal more with Gtk. > Does anyone knows where I can get helped on glib and my problem on > GModule : > > I'm tryi

GModule

2004-11-15 Thread sinsedrix
Hi, I don't know if this list deals with glib, it seems to deal more with Gtk. Does anyone knows where I can get helped on glib and my problem on GModule : I'm trying to use GModule in a special way : - I need to open several instances of a same module - Different modules may have

Ouch : GModule

2004-11-11 Thread sinsedrix
Hi, I'm trying to use GModule in a special way : - I need to open several instances of a same module - Different modules may have identical symbols : this is probably now possible with the new flag G_MODULE_BIND_LOCAL, but I haven't tested it yet (have to downdload the new gtk ve

Ouch : GModule

2004-11-10 Thread sinsedrix
Hi, I'm trying to use GModule in a special way : - I need to open several instances of a same module - Different modules may have identical symbols : this is probably now possible with the new flag G_MODULE_BIND_LOCAL, but I haven't tested it yet (have to downdload the new gtk ve

GModule

2002-07-29 Thread Olaf Leidinger
Hello! Is the number of GModules being opend at the same time limited by glib2 in any way? Ciao, Olaf ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Woes with gmodule and Mac OS X (and possible solution)

2002-03-05 Thread Ryan Wilhm
Hi all, I've been working on trying to get the latest Mono drop to work on Mac OS X, which also means that I've been trying to get Glib 1.3 to work, too. The latest problem that I've been having is with gmodule, and how Apple makes the distinction between plugins/modules and

Re: GtkType defined in a gmodule?

2001-01-29 Thread Tim Janik
On 26 Jan 2001, Maciej Stachowiak wrote: > > What's the right way to handle a GtkType that's defined in a loadable > module that can get unloaded and reloaded multiple times? There's no > way to remove an existing GtkType, so the module can't clean up on > exit. However, from what I can see reus

Re: GtkType defined in a gmodule?

2001-01-26 Thread Havoc Pennington
Maciej Stachowiak <[EMAIL PROTECTED]> writes: > What's the right way to handle a GtkType that's defined in a loadable > module that can get unloaded and reloaded multiple times? There's no > way to remove an existing GtkType, so the module can't clean up on > exit. However, from what I can see re

GtkType defined in a gmodule?

2001-01-26 Thread Maciej Stachowiak
What's the right way to handle a GtkType that's defined in a loadable module that can get unloaded and reloaded multiple times? There's no way to remove an existing GtkType, so the module can't clean up on exit. However, from what I can see reusing the type by using gtk_type_from_name to get it i