Changeset 2417 in Sophya


Ignore:
Timestamp:
Jul 21, 2003, 11:04:59 PM (22 years ago)
Author:
cmv
Message:

essai gestion pb de display a l ouverture rz+cmv 21/7/2003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/piwdgx.cc

    r1317 r2417  
    1818#include "pievthandler.h"
    1919#include "pigraphx.h"
     20
     21#ifdef SANS_EVOLPLANCK
     22#include "perrors.h"
     23#else
     24#include "pexceptions.h"
     25#endif
    2026
    2127
     
    659665                          applicationShellWidgetClass, NULL, 0);
    660666if (top == NULL) {
    661   fprintf(stderr, "PIWdgX::InitXt()/ Error XtVaAppInitialize() -> Exit \n");
    662   exit(9);
     667  fprintf(stderr, "PIWdgX::InitXt()/ Error XtVaAppInitialize()\n");
     668#ifdef SANS_EVOLPLANCK
     669  throw notFoundErr;
     670#else
     671  throw NotFoundExc("PIWdgX::InitXt()/ Error XtVaAppInitialize()");
     672#endif
    663673  }
    664674dpy = XtDisplay(top);
    665675if (dpy == NULL)  {
    666   fprintf(stderr, "PIWdgX::InitXt()/ Error XtVaAppInitialize()/DisplayConnection -> Exit \n");
    667   exit(9);
     676  fprintf(stderr, "PIWdgX::InitXt()/ Error XtVaAppInitialize()/DisplayConnection\n");
     677#ifdef SANS_EVOLPLANCK
     678  throw notFoundErr;
     679#else
     680  throw NotFoundExc("PIWdgX::InitXt()/ Error XtVaAppInitialize()/DisplayConnection");
     681#endif
    668682  }
    669683
Note: See TracChangeset for help on using the changeset viewer.