0
を破壊しないコミュニケータ:Pythonの:私は次のPythonスクリプトを実行しようとする世界的な破壊時の
/usr/bin/python /var/www/html/iPhone/inarrivo/python/addMurmurChannel.py 14 I receive error: communicator not destroyed during global destruction.
はコミュニケータとどのように私はそれを破壊するとは何ですか?
#!/usr/bin/python
import Ice
import inspect
import sys
#Ice.loadSlice("/usr/local/murmur/ice/Murmur.ice")
Ice.loadSlice('', ['-I' + Ice.getSliceDir(), "/usr/local/murmur/ice/Murmur.ice"])
import Murmur
newChannelName=sys.argv[1]
# Init ice
comm = Ice.initialize()
# Let Ice know where to go to connect to mumble
# Let Ice know where to go to connect to mumble
proxy = comm.stringToProxy("Meta -e 1.0:tcp -p 6502")
# Create a dynamic object that allows us to get a programmable interface for Mumble
meta = Murmur.MetaPrx.checkedCast(proxy)
# Get the server instance from the set of servers.
server = meta.getServer(1)
found=False
channels = server.getChannels()
for value in channels.itervalues():
idChannel=value.id
if value.name == newChannelName:
found=True
break
if found==False:
server.addChannel(newChannelName, 0)
はい、実際に今、私はエラーを受け取りません。その点については、taxiprofessional.netの雑音サーバーがインストールされ、正しく動作しているにもかかわらず、なぜ答えることができないのか分かりませんか? –
@FabrizioBartolomucciおそらく、あなたは何が間違っているかを見るためにトレース関連のプロパティを設定することができます。 – eleq
これを達成するには? –