I am attempting to resolve two references to different CORBA C++ servants using the following code:<br><br> def resolveCameraImplRef(self):<br> name = [CosNaming.NameComponent(BRAIN_NAME,""),<br> CosNaming.NameComponent(CAMERA_NAME,"")]<br>
try:<br> cameraObj = self.manager.rootContextExt.resolve(name)<br> except:<br> printDebug( "Problem resolving Camera object name in initCorbaOrb().cameraClientInit()" )<br> sys.exit(1)<br>
<br> client = cameraObj._narrow(gri._objref_Camera)<br> if client is None:<br> printDebug( "Problem narrowing cameraObj to a GRI::Camera in initCorbaOrb().cameraClientInit()" )<br> sys.exit(1)<br>
else:<br> return client<br><br> def resolvePanoramaImplRef(self):<br> name = [CosNaming.NameComponent(BRAIN_NAME,""),<br> CosNaming.NameComponent("Panorama","")]<br>
try:<br> panoramaObj = self.manager.rootContextExt.resolve(name)<br> except:<br> printDebug( "Problem resolving Panorama object name in initCorbaOrb().panoramaClientInit()" )<br>
sys.exit(1)<br><br> panoramaClient = panoramaObj._narrow(gri._objref_Panorama)<br> if client is None:<br> printDebug( "Problem narrowing panoramaObj to a GRI::Panorama in initCorbaOrb().panoramaClientInit()" )<br>
sys.exit(1)<br> else:<br> return client<br><br>Before I added the clientImplRef code I was able to make calls to the C++ servant handling the panorama object. Now I can successfully resolve references to the camera object but when the panorama is being reolved I receive this:<br>
<br>Problem resolving Panorama object name in initCorbaOrb().panoramaClientInit()<br>Exception exceptions.AttributeError: "_objref_Panorama instance has no attribute '_Object__release'" in <bound method _objref_Panorama.__del__ of <gri._objref_Panorama instance at 0xb79e3c6c>> ignored<br>
<br>If I need to provide more code please let me know. I don't know how to decipher the error I'm receiving. <br><br>Cheers,<br><br>Kyle Dunn<br>