Hi Xie, a TGClient object is created via a TApplication. Currently you can have only one TGClient (TGClient is a singleton). Better use directly TApplication. Also use the .rootrc resource "Gui.IconPath" to customize your icon search path, so the global picture pool can also find your icons (via gClient->GetPicture()). I tried making a second picture pool and that works fine. Could you mail me a full traceback so I can see where the problem occurs. Cheers, Fons. Wei Xie wrote: > > Dear Rooters, > > I get the error messages in the following code: > > --------------------------- > TGClient* client = new TGClient("ceresx4.weizmann.ac.il"); > TGPicturePool *PicPool = new TGPicturePool(client, > "/data4/dst/ROOT/root/icons"); > const TGPicture *tmp; > tmp = PicPool->GetPicture("arms.xpm"); > ----------------------------- > > The error is : > > ---------------- > *** Break *** segmentation violation > > ( 0) 0xc1065fd8 StackTrace__11TUnixSystemFv + 0x28 > [/data4/dst/ROOT/root/lib/libUnix.sl] > ( 1) 0xc10648f0 DispatchSignals__11TUnixSystemF8ESignals + 0x150 > [/data4/dst/ROOT/root/lib/libUnix.sl] > ....................... > ------------------- > > The picture is in the pool, so what could be the error ? > > Sincerely > Xie -- 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 7677910
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:30 MET