Re: Dynamically Changing TGTab

From: Fons Rademakers (rdm@pcsalo.cern.ch)
Date: Wed Aug 11 1999 - 21:45:17 MEST


Hi Gregory,

   It looks like your X server runs out of resources. Are you displaying
on some small poor X terminal? What is too big? Each embedded canvas 
contains just simple histogram or many sub pads?

Try displaying on a workstation with enough resources for the X server.
If the problem persists there send me your code so I can try to fix the
problem.

Cheers, Fons.


> 
> I have a program that needs to display some histograms that I would like
> to be large (at least 600x600).  I am attempting to use a TGTab to
> display them (one on each tab), but if it gets too big, then I get the
> following error message:
> 
> Error in <RootX11ErrorHandler>: BadAlloc (insufficient resources for
> operation) (XID: 83886324)
> 
> I have a TRootEmbededCanvas on each tab.  
> 
> In an attempt to solve this problem I'm trying to create this
> TRootEmbededCanvas dynamically when the tab is pressed (and destroy the
> old one). 
> 
> The problem is that then nothing appears in the tab window even
> though I update the canvas in the TRootEmbededCanvas. I believe I just
> need to figure out how to update the tab, but I do not know how.  Any
> suggestions or alternative recommendations?  Perhaps I can just resize the
> canvas larger when it is pressed?
> 
> I am using v2.21 on a sun and v2.22 on an HP.
> 
> Thanks,
> Gregory Holden.
> 
> 
> 


-- 
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:38 MET