Changeset 3146 in Sophya


Ignore:
Timestamp:
Jan 18, 2007, 5:41:22 PM (19 years ago)
Author:
ansari
Message:

Modif mineure : Objet PIAppl. cree avant mkdir TmpDir, pour eviter les repertoires laisses lorsqu'il y a un pb de connexion su serveur X - Reza 18/01/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/ProgPI/piapp.cc

    r3091 r3146  
    155155SophyaInitiator::PrintVersion(true);  // SOPHYA version and module list
    156156
     157// Reza , Jan07
     158// On cree l'objet PIApplication avant de faire mkdir TmpDir
     159// En cas de pb X11 , il n'y a pas de repertoire PIATmpxxx qui traine apres
     160
     161PIStdImgApp * app = new PIStdImgApp(fgsmall, narg, arg);
     162// cout << " DBG-2 " <<  app->ObjMgr()->GetTmpDir() << endl;
     163
    157164char* vcmds=NULL;
    158165string vcmd;
     
    186193}
    187194
    188 // On cree un repertoire temporaire
    189 // cout << " DBG-TMPDIR= " << getenv("TMPDIR") << endl;
    190 
    191 PIStdImgApp * app = new PIStdImgApp(fgsmall, narg, arg);
    192 // cout << " DBG-2 " <<  app->ObjMgr()->GetTmpDir() << endl;
    193195cout << "  NamedObjMgr::SetTmpDir()+XNTuple::SetSwapPath() " << tmpdir << endl;
    194196app->ObjMgr()->SetTmpDir(tmpdir);
    195197XNTuple::SetSwapPath(const_cast<char *>(tmpdir.c_str()));
    196 
    197 
    198198
    199199// Gestion de redirection stdout/err et Signaux
Note: See TracChangeset for help on using the changeset viewer.