comm failure



hello


    i'm doing a program with bonobo that needs to access remote objects,
    because oaf can't be used yet to resolve remote objects, i
    programmed a work around, upon inizialization of the objects i
    register them into orbit-name-server, then when i need to access the
    remote factory i use the orbit name server to get a reference to it.
    This works ok. Of cource i don't register the objects into oaf and
    neither do a oaf_activate.

    Right now i'm adding a listener on the client side, the idl for the
    listener interface is something like this:

        interface Listener : Bonobo::Unknown {
            void notifyEvents(in EventSeq events);
        };

        I use Bonobo X Object to create the bonobo object around this
        interface, and on the other side i have a listener-client
        object.

        To pass a reference to this object to the client side a call a
        registerListener method on other interface, this part works ok,
        but when i do a listener_client_event call, that calls the
        notifyEvent method i get a COMM_FAILURE.

        BTW: the programa that make is call is multithread, i was doing
        the call from a thread different than the main one, and the
        programm was getting stalled, i did a g_idle_add(func, data),
        the func function now is the one that calls the corba method, in
        this way the program doesn't stall any more.

    I don't know what can it be. 

    Do somebody have an idea of what can it be?

    Thanks.



_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]