Hi,
> The default BuildIndex algorithms assumes that teh majorname & minorname are
> positive. Note that you can specify a formula for the major and minor name
This is not mentioned anywhere (that they must be positive).
> You can set a bit via TObject::SetBit to specify if you have ownership or not
The TObject::SetBit does NOT say that I own an object. It only says that
SOMEONE (it MAY be me) owns it.
I think I will need to introduce additional fields in my class.
> Why don't you create a static object TWireInfo?
Because I want to use "new" and "delete".
> Note that in version 3.01, the way the dictionaries are built has been optimized
(The cint in 3.01 broke some of my existing code, so I stay with 3.00.)
Well, ... I just tried it. I added to my TWireInfo.cxx the following :
Int_t Dictionaries = gInterpreter->InitializeDictionaries(); // first reinitialize dictionaries ...
TWireInfo *gWireInfo = new TWireInfo(); // ... then create the global instance
This partially works -> I need to set precise order of object files while
creating shared library (if I change it, it breaks with old errors) :
g++ -O2 -g -Wall -fPIC -shared -o TIcaDiag.so TWireInfo.o TIcaDiagDict.o
then I get :
root [0] gSystem->Load("TIcaDiag"); // fine, no errors, but ...
root [1] delete gWireInfo // or "new TWireInfo()"
*** Break *** segmentation violation
Root >
Jacek.
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:50 MET