swarm-support
[Top][All Lists]
Advanced

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

seg-faults on the road


From: daniel kottow
Subject: seg-faults on the road
Date: Wed, 19 Dec 2001 17:34:01 +0100

got the new swarm package installed, 
now regxpcom doesn't complain about anything and AFAIK registers swarm
components.
i dont know what xpcshell is about, but that fails for me because of an
unresolved symbol.

anyway, in python, i tried the following:

from xpcom import components
cls = components.classes['urn:swarm:SwarmEnvironmentImpl']
obj = cls.createInstance(components.interfaces.swarmISwarmEnvironment)

and that seems to work, i get an instance of <XPCOM object
'urn:swarm:SwarmEnvironmentImpl'>.
but if i call, e.g., 
obj.guiFlag
or any other interface element mentioned in swarmISwarmEnvironment.idl i
get a seg fault :(
this happens with other swarm com stuff as well.

what i still dont understand is how to call swarm's create method on such
an object.
create is part of the swarmISelector interface, but this interface doesnt
seem supported by the swarm components like the cls from the example above.

i think a good idea would be to get swarm COM working from javascript on my
machine.
so i downloaded rhino and i can now run the interactive shell which i hope
is the one you are using. maybe you could provide an explicit "hello swarm"
snippet which i can try from rhino ?

greetings, daniel 


-- 
Daniel Kottow                                    address@hidden
Security and Testing Technology                 
http://vision.fhg.de/~daniel
Production Technology Centre                     Pascalstr. 8 - 9
Fraunhofer-Institut IPK Berlin                   D - 10587 Berlin



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]