Changeset 4a600df in tol
- Timestamp:
- Jun 19, 2015, 11:07:45 AM (11 years ago)
- Branches:
- 1941-docker-image-to-test, devel, master
- Children:
- 2bec99e
- Parents:
- 64eb621
- File:
-
- 1 edited
-
tol/LoadDynLib/LoadDynLib.cpp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tol/LoadDynLib/LoadDynLib.cpp
r64eb621 r4a600df 82 82 "(Text libraryPath [, Text libraryName])", 83 83 I2("Link a dynamic library without TOL built-in functions.", 84 "Enla ca una librería dinámica sin funciones TOL nativas."),84 "Enlaza una librería dinámica sin funciones TOL nativas."), 85 85 BOperClassify::Statistic_); 86 86 void BDatLoadDynLib::CalcContens() … … 98 98 BUserNameBlock* unb = NULL; 99 99 100 // se cambia el directorio de trabajo (cwd) inicial 101 BText currentDir = BDir::GetCurrent(); 102 BDir::ChangeCurrent(GetFilePath(libraryPath)); 103 100 104 lt_dlhandle handleLib; 101 105 102 106 // abro la DynLib 103 107 handleLib = lt_dlopen( libraryPath ); 108 109 // se retorna al directorio de trabajo (cwd) inicial 110 BDir::ChangeCurrent(currentDir); 111 104 112 if ( !handleLib ) 105 113 { … … 125 133 "(Text libraryPath [, Text libraryName])", 126 134 I2("Returns a NameBlock that contains methods and members written " 127 "in C ++ in a precompiled library for dynamic linking. Once "135 "in C++ in a precompiled library for dynamic linking. Once " 128 136 "loaded Nameblock is nothing particular and can be used like " 129 137 "any other object created with language TOL. See more details on ", … … 153 161 //Std(BText("\nTRACE BLoadDynLib::Evaluator 1 libraryPath=")+libraryPath); 154 162 //Std(BText("\nTRACE BLoadDynLib::Evaluator 2 libraryName=")+libraryName); 163 155 164 BUserNameBlock* unb = NULL; 165 166 // se cambia el directorio de trabajo (cwd) inicial 167 BText currentDir = BDir::GetCurrent(); 168 BDir::ChangeCurrent(GetFilePath(libraryPath)); 156 169 157 170 lt_dlhandle handleLib; … … 159 172 // abro la DynLib 160 173 handleLib = lt_dlopen( libraryPath ); 174 175 // se retorna al directorio de trabajo (cwd) inicial 176 BDir::ChangeCurrent(currentDir); 177 161 178 if ( !handleLib ) 162 179 {
Note: See TracChangeset
for help on using the changeset viewer.
