RE: [ROOT] Problem with version 3.03.08 on Windows XP

From: Valeri Fine (fine@bnl.gov)
Date: Wed Sep 11 2002 - 16:58:13 MEST


Hello Andrei

gSystem->Load() doesn't look up and respect the PATH env the way all
other Windows applications do. The DLL search path is defined by
so-called ROOT resource file (rather by Bill Gates:-).
One can find it under %ROOTSYS%\etc\system.rootrc.

Alas I found very few information about "ROOT resource file" in ROOT
documentation.

One can customize the system resource providing the custom ".rootrc"
file in his/her current directory.

For example one can create the custom 
.rootrc file with a single line in:

.rootrc:
WinNT.*.Root.DynamicPath:   .;$(PATH)
 

This will force ROOT to look up the "working" direcopry and directories
on PATH to load DLLs.

Hope this helps.


> -----Original Message-----
> From: owner-roottalk@pcroot.cern.ch
[mailto:owner-roottalk@pcroot.cern.ch]
> On Behalf Of Andrei Daniel
> Sent: Wednesday, September 11, 2002 2:01 AM
> To: Roottalk
> Subject: [ROOT] Problem with version 3.03.08 on Windows XP
> 
> Hello Rotters!
> 
> I have a problem with the last version 3.03.08
> on the Windows XP. I load own DLL by
> gSystem->Load("mydll.dll")
> and root cannot search it in the directory that
> is present in the PATH. After root restart it
> writes that libMinuit.dll cannot be loaded.
> After system reboot and library moving into
> the /root/bin directory root began to work.
> But after the error in the macros and root restart
> it repeat the error - libMinuit.dll cannot be loaded.
> When I backed to the version 3.03.07 all works
> excluding library loading from the directory
> describing in the PATH. It is loaded only from
> the /root/bin directory.
> 
> Andrei
> 
> ----------------------------------------------
> Andrei Daniel
> FLNR, JINR, Dubna 141980 Russia
> e-mail: daniel@jinr.ru
> tel: 7 (09621) 64568   fax: 7 (09621) 65083



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET