[omniORB] -ORBInitialHost or -ORBInitRef

Favre Benoit ben.favre@wanadoo.fr
Wed Jul 24 16:20:02 2002


Sorry, this was just a _ptr to _var affectation mistake.
Cheers, Benoit.

Le Mercredi 24 Juillet 2002 16:45, vous avez écrit :
> I have a program that lists all entries of a name service.
> It works fine when i invoke it with :
> -ORBInitialHost <host> -ORBInitialPort <port>
>
> but it tells me "pure virtual method called" and segfaults if i lauch it
> with
>
> -ORBInitRef NameService=corbaloc:iiop:<host>:<port>/NameService
>
> in both case, i retrieve the name service with the well known :
> orb->resolve_initial_references("NameService"))
> My program calls a recursive method (see trace) that retrieves the content
> of each context of the name service using Binding Lists and Iterators.
>
> Here is a stack trace (omniORB 3.03, Linux 2.4.18, RH7.2) :
> ...
> #4  0x40157f1a in __terminate () at ../../gcc/libgcc2.c:3034
> #5  0x400e1aab in __pure_virtual () from
> /opt/omni/lib/i586_linux_2.0_glibc/libomniORB3.so.0
> #6  0x4008709a in omniObjRef::_invoke () from
> /opt/omni/lib/i586_linux_2.0_glibc/libomniORB3.so.0
> #7  0x400d738a in CosNaming::_objref_NamingContext::resolve () from
> /opt/omni/lib/i586_linux_2.0_glibc/libomniORB3.so.0
> #8  0x0805702f in CorbaUtility::listContext (rootNameService=0x8077038,
> name=0x806eb50 "context_1")
>     at CorbaUtility.cc:315
> #9  0x0804e39b in recursive_list_all (path=0xbffff700,
> NameService=0x8077038) at client.cc:29
> #10 0x0804e459 in recursive_list_all (path=0xbffff760,
> NameService=0x8077038) at client.cc:36
> #11 0x0804e600 in list_all (argc=3, argv=0xbffff844) at client.cc:58
> #12 0x08051e86 in main (argc=3, argv=0xbffff844) at client.cc:341
> ...
>
> Cheers,
> Benoit Favre
> _______________________________________________
> omniORB-list mailing list
> omniORB-list@realvnc.com
> http://www.realvnc.com/mailman/listinfo/omniorb-list