Changeset 989 for trunk/MagicSoft/Mars
- Timestamp:
- 10/24/01 15:40:24 (23 years ago)
- Location:
- trunk/MagicSoft/Mars
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mbase/MLog.cc
r936 r989 43 43 #include "MLog.h" 44 44 45 #include <stdlib.h> // mkstempe 45 46 #include <fstream.h> 46 47 #include <TGListBox.h> … … 204 205 void MLog::AllocateFile(const char *fname) 205 206 { 206 fout = new ofstream(fname);207 fout = fname ? new ofstream(fname) : new ofstream(mkstemp("logXXXXXX")); 207 208 fOutAllocated = kTRUE; 208 209 } -
trunk/MagicSoft/Mars/mbase/MLog.h
r936 r989 5 5 //#include "MAGIC.h" 6 6 //#endif 7 #ifndef ROOT_TObject 8 #include <TObject.h> 9 #endif 7 10 8 #include <TObject.h>9 10 #include <stdio.h> // tmpname11 11 #include <iostream.h> // base classes for MLog 12 12 … … 95 95 } 96 96 97 void SetOutputFile(const char *f= tmpnam(NULL), int flag=-1)97 void SetOutputFile(const char *f=NULL, int flag=-1) 98 98 { 99 99 // … … 121 121 // 122 122 if (!fout) 123 ReallocateFile( tmpnam(NULL));123 ReallocateFile(NULL); 124 124 return *fout; 125 125 } -
trunk/MagicSoft/Mars/mmain/MMonteCarlo.cc
r988 r989 85 85 fRadioButton3 = new TGRadioButton(group, "Use a number of trigger conditions (1..n)."); 86 86 87 fList->Add(fRadioButton1); 88 fList->Add(fRadioButton2); 89 fList->Add(fRadioButton3); 87 /* 88 FIXME: ~TGRadioButton fails with segfault in GetMainFrame 89 90 fList->Add(fRadioButton1); 91 fList->Add(fRadioButton2); 92 fList->Add(fRadioButton3); 93 */ 90 94 91 95 //
Note:
See TracChangeset
for help on using the changeset viewer.