0 Replies Latest reply on Nov 18, 2009 5:05 PM by Listat_jhg

    Fatal error with my xtra

    Listat_jhg

      Hi there, I wrote my xtra and I compiled it with VC++ with no errors, but when I use the new command implemented by my xtra Director sends me an alert with the fatal error and I have to choices; save and exit or exit inmediately.

       

      Can Somebody tell me where is my fault in my xtra? This is my code:

       

           err = pObj->pMoaPath->InitFromString(param1, kMoaPathDialect_LOCAL, 1, 0);
           if (err != kMoaErr_NoErr) { goto SALIR_FUNCION;}

       

           char RutaArchivo[MOA_MAX_PATHNAME];

           err = pObj->pMoaPath->GetPath(RutaArchivo, MOA_MAX_PATHNAME);
           if (err != kMoaErr_NoErr) { goto SALIR_FUNCION;}

       

           // CREAMOS OBJETO MOA FILENAME PARA MANEJO DEL ARCHIVO
           err = pObj->pMoaFile->SetPathName(pObj->pMoaPath);
           if (err != kMoaErr_NoErr) { goto SALIR_FUNCION;}

           err = pObj->pMoaUtils->PrintMessage(RutaArchivo);

       

           SALIR_FUNCION:
           pObj->pMoaFile->Release();
           pObj->pMoaPath->Release();

       

      With the first sentence in my code the fatal error occurs. I've already declared all the instances vars it needs.

      I know xtra's docs is basic explained so I need more help.

       

      Tnks and I see you.