It looks healthy. The only my guess the source code that was used to create the binary for Windows is not that from the CERN CVS repository. Valeri > -----Original Message----- > From: Ed Oltman [mailto:eoltman@imago.com] > Sent: Friday, May 09, 2003 9:02 AM > To: Faine, Valeri; 'Roottalk@Pcroot. Cern. Ch' > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> changes default > directory > > Valeri, > Here's my system.rootrc - I've never touched it - how it came from cern > binaries. > > Ed > > > # @(#)root/config:$Name: $:$Id: rootrc.in,v 1.42 2003/03/10 14:57:11 rdm > Exp $ > # Author: Fons Rademakers 22/09/95 > > # ROOT Environment settings are handled via the class TEnv. To see > # which values are active do: gEnv->Print(). > > # Path used by dynamic loader to find shared libraries and macros > # Paths are different for Unix and Windows. The example shows the defaults > # for all ROOT applications for either Unix or Windows. > Unix.*.Root.DynamicPath: .:$(ROOTSYS)/lib > Unix.*.Root.MacroPath: .:$(ROOTSYS)/macros > WinNT.*.Root.DynamicPath: .;$(ROOTSYS)/bin;$(PATH) > WinNT.*.Root.MacroPath: .;$(ROOTSYS)/macros > > # Path where to look for TrueType fonts > Unix.*.Root.UseTTFonts: true > Unix.*.Root.TTFontPath: $(ROOTSYS)/fonts > > # Use thread library (if exists) > Unix.*.Root.UseThreads: false > > # Show where item is found in the specified path > Root.ShowPath: false > > # Activate memory statistics (size and cnt is used to trap allocation of > # blocks of a certain size after cnt times) > Root.MemStat: 0 > Root.MemStat.size: -1 > Root.MemStat.cnt: -1 > Root.ObjectStat: 0 > > # Activate memory leak checker (use in conjunction with > $ROOTSYS/bin/memprobe) > # Currently only works on Linux with gcc. > Root.MemCheck: 0 > Root.MemCheckFile: memcheck.out > > # Global debug mode. When >0 turns on progressively more details > debugging. > Root.Debug: 0 > Root.Stacktrace: yes > > # Settings for X11 behaviour. > X11.Sync: no > X11.FindBestVisual: yes > > # Default editor > Unix.*.Editor: vi > WinNT.*.Editor: notepad > > # Specify list of file endings which TTabCom (TAB completion) should > ignore. > #TabCom.FileIgnore: .cpp:.h:.cmz > > # TCanvas specific settings. Opaque move and resize show full pad during > # the operation instead of only the outline. Especially for resize you'll > # need serious CPU power. UseScreenFactor=true means to size canvas > according > # to size of screen, so a canvas still looks good on a low resolution > # laptop screen without having to change canvas size in macros. > # HighLightColor 2 = red. ShowEventStatus allows the event status bar to > # be turned on by default. AutoExec allows TExec objects to be executed > # on mouse and key events. > Canvas.MoveOpaque: false > Canvas.ResizeOpaque: false > Canvas.UseScreenFactor: true > Canvas.HighLightColor: 2 > Canvas.ShowEventStatus: false > Canvas.AutoExec: true > > # Default histogram binnings for TTree::Draw() > Hist.Binning.1D.x: 100 > > Hist.Binning.2D.x: 40 > Hist.Binning.2D.y: 40 > Hist.Binning.2D.Prof: 100 > > Hist.Binning.3D.x: 20 > Hist.Binning.3D.y: 20 > Hist.Binning.3D.z: 20 > Hist.Binning.3D.Profx: 100 > Hist.Binning.3D.Profy: 100 > > # THtml specific settings (for more see doc of THtml class) > Unix.*.Root.Html.SourceDir: .:src:include > WinNT.*.Root.Html.SourceDir: .;src;include > #Root.Html.OutputDir: htmldoc/ > #Root.Html.Homepage: > #Root.Html.Header: > #Root.Html.Footer: > #Root.Html.Description: //____________________ > #Root.Html.Author: // Author: > #Root.Html.LastUpdate: // @(#) > #Root.Html.Copyright: * Copyright > > # GUI specific settings > Gui.Backend: native > Unix.*.Gui.NormalFont: -adobe-helvetica-medium-r-*-*-12-*-*-*-*-*- > iso88 > 59-1 > Unix.*.Gui.BoldFont: -adobe-helvetica-bold-r-*-*-12-*-*-*-*-*- > iso8859 > -1 > Unix.*.Gui.SmallFont: -adobe-helvetica-medium-r-*-*-10-*-*-*-*-*- > iso88 > 59-1 > Unix.*.Gui.ProportionalFont: -adobe-courier-medium-r-*-*-12-*-*-*-*-*- > iso885 > 9-1 > WinNT.*.Gui.NormalFont: -adobe-helvetica-medium-r-*-*-15-*-*-*-*-*- > iso88 > 59-1 > WinNT.*.Gui.BoldFont: -adobe-helvetica-bold-r-*-*-15-*-*-*-*-*- > iso8859 > -1 > WinNT.*.Gui.SmallFont: -adobe-helvetica-medium-r-*-*-15-*-*-*-*-*- > iso88 > 59-1 > WinNT.*.Gui.ProportionalFont: -adobe-courier-medium-r-*-*-15-*-*-*-*-*- > iso88 > 59-1 > Gui.BackgroundColor: #c0c0c0 > Gui.ForegroundColor: black > Gui.SelectForegroundColor: white > Gui.SelectBackgroundColor: #000080 > Gui.IconPath: $(HOME)/icons:$(ROOTSYS)/icons:. > Gui.MimeTypeFile: $(HOME)/.root.mimes > # If above does not exists defaults to this: > #Gui.MimeTypeFile: $(ROOTSYS)/etc/root.mimes > # Can be either small, big, list, details > Browser.IconStyle: small > # Can be either name, type, size, date > Browser.SortBy: name > Browser.GroupView: 1000 > Browser.ShowHidden: no > > # Rint (interactive ROOT executable) specific alias, logon and logoff > macros > Rint.Load: rootalias.C > Rint.Logon: rootlogon.C > Rint.Logoff: rootlogoff.C > # Record session commands, set to "-" to turn off command recording > Rint.History: $(HOME)/.root_hist > > # ACLiC customization. > # ACLiC.Linkdef specifies the suffix that will be added to the script name > to > # try to locate a custom linkdef file when generating the dictionary. > ACLiC.Linkdef: _linkdef > > # Default authentication method for rootd (0=clear, 1=SRP, 2=Krb5) > Rootd.Authentication: 0 > > # Default authentication method for proofd (0=clear, 1=SRP, 2=Krb5) > Proofd.Authentication: 0 > > # Plugin library handlers > Plugin.TFile: ^rfio: TRFIOFile RFIO "TRFIOFile(const > char*,Option_t*,const char*,Int_t)" > +Plugin.TFile: ^dcache: TDCacheFile DCache "TDCacheFile(const > char*,Option_t*,const char*,Int_t)" > +Plugin.TFile: ^chirp: TChirpFile Chirp "TChirpFile(const > char*,Option_t*,const char*,Int_t)" > Plugin.TSystem: ^rfio: TRFIOSystem RFIO "TRFIOSystem()" > Plugin.TSQLServer: ^mysql: TMySQLServer MySQL "TMySQLServer(const > char*,const char*,const char*)" > +Plugin.TSQLServer: ^pgsql: TPgSQLServer PgSQL "TPgSQLServer(const > char*,const char*,const char*)" > +Plugin.TSQLServer: ^sapdb: TSapDBServer SapDB "TSapDBServer(const > char*,const char*,const char*)" > +Plugin.TSQLServer: ^oracle: TOracleServer Oracle "TOracleServer(const > char*,const char*,const char*)" > Plugin.TGrid: ^alien TAlien RAliEn "TAlien(const > char*,const char*,const char*,const char*)" > Plugin.TVirtualPad: * TPad Gpad "TPad()" > Plugin.TVirtualFitter: * TFitter Minuit "TFitter(Int_t)" > Plugin.TVirtualHistPainter: * THistPainter HistPainter "THistPainter()" > Plugin.TVirtualTreePlayer: * TTreePlayer TreePlayer "TTreePlayer()" > Plugin.TVirtualTreeViewer: * TTreeViewer TreeViewer > "TTreeViewer(const > TTree*)" > Plugin.TVirtualGeoPainter: * TGeoPainter GeomPainter "TGeoPainter()" > Plugin.TVirtualUtil3D: * TUtil3D Graf3d "TUtil3D()" > Plugin.TVirtualUtilHist: * TUtilHist Hist "TUtilHist()" > Plugin.TVirtualUtilPad: * TUtilPad Gpad "TUtilPad()" > Plugin.TVirtualPS: ps TPostScript Postscript "TPostScript()" > +Plugin.TVirtualPS: svg TSVG Postscript "TSVG()" > Plugin.TViewerX3D: * TViewerX3D X3d > "TViewerX3D(TVirtualPad*,Option_t*,const char*,UInt_t,UInt_t)" > Plugin.TMinuitGraph: * TGraph Graf > "TGraph(Int_t,const Double_t*,const Double_t*)" > Plugin.TVirtualProof: * TProof Proof "TProof(const > char*,const char*,const char*,Int_t)" > Plugin.TPaletteEditor: * TASPaletteEditor ASImage > "TASPaletteEditor(TAttImage*,UInt_t,UInt_t)" > Plugin.TImage: * TASImage ASImage "TASImage()" > Plugin.TFileDrawMap * TFileDrawMap TreePlayer > "TFileDrawMap(const TFile*, const char*, const char*)" > Plugin.TVirtualX: x11 TGX11 GX11 "TGX11(const > char*,const char*)" > +Plugin.TVirtualX: x11ttf TGX11TTF GX11TTF "TGX11TTF()" > +Plugin.TVirtualX: win32 TGWin32 Win32 "TGWin32(const > char*,const char*)" > +Plugin.TVirtualX: win32gdk TGWin32 Win32gdk "TGWin32(const > char*,const char*)" > Plugin.TGuiFactory: root TRootGuiFactory Gui > "TRootGuiFactory()" > +Plugin.TGuiFactory: win32 TWin32GuiFactory Win32 > "TWin32GuiFactory()" > > # Example of custom setting for the Rint application (root.exe). > # This overrides the default specified above for a generic application. > # Color 5 is yellow. > Rint.Canvas.HighLightColor: 5 > > > -----Original Message----- > > From: Faine, Valeri [mailto:fine@bnl.gov] > > Sent: Thursday, May 08, 2003 7:31 PM > > To: 'Roottalk@Pcroot. Cern. Ch' > > Cc: 'Ed Oltman' > > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> changes > > default directory > > > > > > Hello Ed, > > Just a guess, Can you show me your system.rootrc file > > Thank you. > > Valeri > > > > > > > -----Original Message----- > > > From: Ed Oltman [mailto:eoltman@imago.com] > > > Sent: Thursday, May 08, 2003 9:53 AM > > > To: Faine, Valeri; 'Roottalk@Pcroot. Cern. Ch' > > > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> changes > > default > > > directory > > > > > > Valeri, > > > I tried canvas "Save As" with root v3.05/4 win32 binaries from cern. > > > I get the same problem, even when I "Save As"'ed to another folder > > > on the same drive. Again, the problem does NOT occur with qt version > > > from bnl. HEre's my output: > > > > > > c:\analysis01>root > > > the current keyboard layout is 437 > > > ******************************************* > > > * * > > > * W E L C O M E to R O O T * > > > * * > > > * Version 3.05/04 21 April 2003 * > > > * * > > > * You are welcome to visit our Web site * > > > * http://root.cern.ch * > > > * * > > > ******************************************* > > > > > > Compiled for win32. > > > > > > CINT/ROOT C/C++ Interpreter version 5.15.83, Apr 6 2003 > > > Type ? for help. Commands must be C++ statements. > > > Enclose multiple statements between { }. > > > root [0] TF1 *f = new TF1("f","sin(x)/x",0.,10.) > > > root [1] gSystem->pwd() > > > (const char* 0xb84f34)"c:\\analysis01" > > > root [2] .!cd > > > c:\analysis01 > > > root [3] f->Draw() > > > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > > > root [4] C++ Macro file: C:\test\test.cpp has been generated > > > > > > root [4] gSystem->pwd() > > > (const char* 0xb84f34)"c:\\analysis01" > > > root [5] .!cd > > > C:\test <----- !!! > > > root [6] > > > > > > > -----Original Message----- > > > > From: Faine, Valeri [mailto:fine@bnl.gov] > > > > Sent: Wednesday, May 07, 2003 8:17 PM > > > > To: 'Ed Oltman'; 'Roottalk@Pcroot. Cern. Ch' > > > > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> changes > > > > default directory > > > > > > > > > > > > Hello Ed, > > > > > > > > > > > > > > Valarie, > > > > > Yes, I am sure I'm using the win32 flavour - binaries from cern > > - > > > > 3.05/3 > > > > > > > > I can not image how WIN32 can do that. > > > > > > > > > I did donwload the qt version from bnl and was unable to > > reproduce > > > > the > > > > > goofy > > > > > behavior. Is it Qt? or is it 3.05/4 vs. 3.05/3? > > > > > > > > The "SaveAs" should not change the current directory. > > > > Can you say what the type of your "X:" drive is? > > > > Can you reproduce things using the same drive ("c:\")? > > > > > > > > Can you make sure you did not mix the DLLs from the different ROO > > > > versions? > > > > > > > > > > > > Thank you > > > > Valeri > > > > > > > > > > > > > > > > > > > > > > > > ++++++++++++++++++++3.05/3 from cern: +++++++++++++++++++++++++ > > > > > > > > > > c:\root>root > > > > > the current keyboard layout is 437 > > > > > ******************************************* > > > > > * * > > > > > * W E L C O M E to R O O T * > > > > > * * > > > > > * Version 3.05/03 11 March 2003 * > > > > > * * > > > > > * You are welcome to visit our Web site * > > > > > * http://root.cern.ch * > > > > > * * > > > > > ******************************************* > > > > > > > > > > Compiled for win32. > > > > > > > > > > CINT/ROOT C/C++ Interpreter version 5.15.78, Mar 3 2003 > > > > > Type ? for help. Commands must be C++ statements. > > > > > Enclose multiple statements between { }. > > > > > root [0] TF1 *f = new TF1("f","sin(x)/x",0.,10.) > > > > > root [1] f->Draw() > > > > > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > > > > > root [2] gSystem->pwd() > > > > > (const char* 0xb6a9f4)"C:\\root" > > > > > root [3] .!cd > > > > > C:\root > > > > > root [4] C++ Macro file: X:\test.C has been generated > > > > > gSystem->pwd() > > > > > (const char* 0xb6a9f4)"C:\\root" > > > > > root [5] .!cd > > > > > X:\ <<---- What the...? > > > > > > > > > > > > > > > ++++++++++++++++++++3.05/4 from bnl: +++++++++++++++++++++++++ > > > > > > > > > > C:\root>root > > > > > ******************************************* > > > > > * * > > > > > * W E L C O M E to R O O T * > > > > > * * > > > > > * Version 3.05/04 29 April 2003 * > > > > > * * > > > > > * You are welcome to visit our Web site * > > > > > * http://root.cern.ch * > > > > > * * > > > > > ******************************************* > > > > > > > > > > Compiled for win32. > > > > > > > > > > CINT/ROOT C/C++ Interpreter version 5.15.83, Apr 6 2003 > > > > > Type ? for help. Commands must be C++ statements. > > > > > Enclose multiple statements between { }. > > > > > > > > > > Welcome to the ROOT tutorials > > > > > > > > > > > > > > > Type ".x demos.C" to get a toolbar from which to execute the demos > > > > > > > > > > Type ".x demoshelp.C" to see the help window > > > > > > > > > > > > > > > > > > > > Type ".x xform.CC" to see the combined Qt/Root demo > > > > > > > > > > > > > > > > > > > > Type ".x RootShower.CC" to see the RootShower complex exmaplen > > > > > root [0] TF1 *f = new TF1("f","sin(x)/x",0.,10.) > > > > > root [1] f->Draw() > > > > > <TCanvas::MakeDefCanvas>: created default TCanvas with name c1 > > > > > root [2] gSystem->pwd() > > > > > (const char* 0xb85eec)"C:\\root" > > > > > root [3] .!cd > > > > > C:\root > > > > > root [4] Save 0:<.C> file as "X:/test.C" . C++ macro > > (*.cpp,*.cxx,*.C) > > > > > C++ Macro file: X:/test.C has been generated > > > > > > > > > > root [4] gSystem->pwd() > > > > > (const char* 0xb85eec)"C:\\root" > > > > > root [5] .!cd > > > > > C:\root > > > > > > > > > > > -----Original Message----- > > > > > > From: Faine, Valeri [mailto:fine@bnl.gov] > > > > > > Sent: Wednesday, May 07, 2003 5:10 PM > > > > > > To: 'Ed Oltman'; 'Roottalk@Pcroot. Cern. Ch' > > > > > > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> > > changes > > > > > > default directory > > > > > > > > > > > > > > > > > > Hello Ed, > > > > > > I can not reproduce your problem. > > > > > > On other hand I pretty sure "Save As" doesn't change > > > > > > the working directory. > > > > > > Are you sure you are working with "win32" flavor? > > > > > > Can you reproduce your problem with version > > http://root.bnl.gov > > > > ?-) > > > > > > > > > > > > Valeri > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Ed Oltman [mailto:eoltman@imago.com] > > > > > > > Sent: Wednesday, May 07, 2003 4:26 PM > > > > > > > To: Faine, Valeri; 'Roottalk@Pcroot. Cern. Ch' > > > > > > > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> > > changes > > > > > > default > > > > > > > directory > > > > > > > > > > > > > > Valeri, > > > > > > > > > > > > > > Oops! my apologies! I did use gSystem->pwd() and it > > displayed > > > > the > > > > > > > original > > > > > > > directory prior to the canvas's "save as". I should get into > > the > > > > > > habit of > > > > > > > cut/paste. Here's my interaction: > > > > > > > > > > > > > > > > > > > > > root [1] gSystem->pwd() > > > > > > > (const char* 0xb6a784)"c:\\analysis01" > > > > > > > root [2] .!cd > > > > > > > c:\analysis01 > > > > > > > [ At this point I "Save As" the canvas to x:\test.c] > > > > > > > root [3] C++ Macro file: X:\test.C has been generated > > > > > > > > > > > > > > root [3] gSystem->pwd() > > > > > > > (const char* 0xb6a784)"c:\\analysis01" > > > > > > > root [4] .!cd > > > > > > > X:\ > > > > > > > > > > > > > > > > > > > > > This does not make sense! > > > > > > > > > > > > > > Ed > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > > From: Faine, Valeri [mailto:fine@bnl.gov] > > > > > > > > Sent: Wednesday, May 07, 2003 3:16 PM > > > > > > > > To: 'Ed Oltman'; 'Roottalk@Pcroot. Cern. Ch' > > > > > > > > Subject: RE: [ROOT] "Save the selected Canvas/Pad as" --> > > > > changes > > > > > > > > default directory > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > I am using win32 root v3.05/3 on win2k. When I save a > > canvas > > > > > > using > > > > > > > > that > > > > > > > > > window's "File->Save As" menu item, the root's (file > > system) > > > > > > directory > > > > > > > > > changes: > > > > > > > > > > > > > > > > > > .!cd displays the directory that the canvas was saved in > > > > > > > > > > > > > > > > > > however, > > > > > > > > > > > > > > > > > > gSystem->cd() displays the original directory prior to > > the > > > > > > Canvas's > > > > > > > > "Save > > > > > > > > > As" > > > > > > > > > > > > > > > > > > I suspect this is not the intended behavior (e.g. "Save > > As" > > > > > > changes > > > > > > > > the > > > > > > > > > default directory), but if it is, should'nt gSystem->cd() > > > > reflect > > > > > > this > > > > > > > > > change? > > > > > > > > > > > > > > > > > > > > > > > > > Hello Ed, > > > > > > > > > > > > > > > > To get the current working directory one should use the > > methods > > > > > > > > > > > > > > > > TSystem::pwd(); > > > > > > > > > > > > > > > > What about cd() I found no method TSystem::cd() at all. > > > > > > > > > > > > > > > > There is TSystem::cd(const char *path). > > > > > > > > What you suggest means the method should return its own > > input > > > > > > parameter. > > > > > > > > That is not very useful. The method cd returns the replaced > > > > > > directory, > > > > > > > > i.e. one we have changed with the "path". > > > > > > > > > > > > > > > > Valeri > > > > > > > > > > > > > > > > > > > > > > > > Home > > > > > > > > It seems to me this is the "Correct" behavior of cd > > method: > > > > > > > > > > > > > > > > Bool_t cd(const char *path) { return > > ChangeDirectory(path); } > > > > > > > > > > > > > > > > Because TWinNTSystem::ChangeDirectoiry() return the > > previous > > > > > > directory > > > > > > > > There is no means to return the inout parameters. > > > > > > > > > > > > > > > > Rhe proper method to get the current working directory is > > > > > > > > TSystem::HomeDirectory() > > > > > > > > > Thanks, > > > > > > > > > Ed Oltman > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:11 MET