Changeset 3040 in Sophya for trunk/SophyaLib/Manual/sophya.tex


Ignore:
Timestamp:
Jul 19, 2006, 1:20:51 AM (19 years ago)
Author:
ansari
Message:

petit ajout concernant pb d initialisation des shared libs ds la doc , Reza 19/07/2006

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/Manual/sophya.tex

    r3037 r3040  
    415415of SOPHYA persistence, as well as FITS I/O facilities.
    416416Initialisation of many SOPHYA modules is performed through an initialiser class,
    417 which inherits from {\bf SophyaInitiator}. Static instance of each
    418 initialiser class exist in the library and the various SOPHYA services
    419 should be operational when the user code ({\tt main()}) starts.
    420 However, in some cases the run time loader may not perform correctly the static
    421 object initialisation. You may thus need to instanciate the initialiser class
    422 for the modules you use in the beginning of your main program: \\
    423 {\tt TArrayInitiator , HiStatsInitiator , SkyMapInitiator \ldots }
     417which inherits from {\bf SophyaInitiator}.
     418\par
     419Static instance of each initialiser class exist in the library and the various SOPHYA services
     420should be operational when the user code ({\tt main()}) starts, except for
     421modules in the second or third shared libraries
     422({\tt libextsophya.so libPI.so}). Indeed, a problem related
     423to the initialisation of shared libraries arises on some systems
     424(Darwin/Mac OS X in particular) causing program crash at start-up,
     425if static instance of initialiser class is present in the second shared library.
     426The FitsIOServer module should thus be explicitly initialised in the user
     427program.
     428\par
     429In cases where the run time loader does not perform correctly the static
     430object initialisation, the initialiser class for the modules used in the
     431program must be instanciated in the beginning of your main program: \\
     432{\tt TArrayInitiator , HiStatsInitiator , SkyMapInitiator , FitsIOServer \ldots}
    424433%%%
    425434\subsection{SOPHYA persistence}
Note: See TracChangeset for help on using the changeset viewer.