Hi Pere, I assume this is on Win32. Where does the access violation occur? In Load() or afterwards when trying to use the supposedly loaded library? On success 0 is returned and -1 on failure. Also the dll is searched in the path specified in $ROOTSYS/etc/system.rootrc WinNT.*.Root.DynamicPath. Make sure that $ROOTSYS is set. -- Fons Pere Mato wrote: > Hello, > > I am trying to load standard ROOT libraries within a C++ module using the > method TSystem::Load(). I seems that it works only if I put the full path > where the library is. If I use only the library name it generates an "access > violation" even if I have in the PATH the location where the libraries are. > > gSystem->Load("libHist") // Access violation! > gSystem->Load("S:/sw/ROOT/v3.01/nt4/root/bin/libHist.dll") // Works!! > > Any explanation? > > Pere > > ------------------------------------------------------------ > Pere Mato CERN, EP Division, CH 1211 Geneva 23, Switzerland > e-mail: Pere.Mato@cern.ch tel: +41 22 76 78696 > fax: +41 22 76 79425 gsm: +41 79 20 10855 > > > > -- Org: CERN, European Laboratory for Particle Physics. Mail: 1211 Geneve 23, Switzerland E-Mail: Fons.Rademakers@cern.ch Phone: +41 22 7679248 WWW: http://root.cern.ch/~rdm/ Fax: +41 22 7679480
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:50:38 MET