[ROOT] TGApplication vs TApplication

From: Thomas Bretz (tbretz@astro.uni-wuerzburg.de)
Date: Fri Oct 31 2003 - 16:34:42 MET


Hi,

on my system (by chance) DISPLAY was not set correctly...

Using TApplication for my application gave me:
gClient=NULL
and my application crashed (I didn't check for it)

Using TGApplication gave me:
Warning in <TUnixSystem::SetDisplay>: DISPLAY not set, setting it to 
mymachine:0.0
which is much more convenient...

Why this? Shouldn't TApplication also try to set DISPLAY correctly and 
only in case this is not possible set gClient=NULL?

Best regards,
Thomas.



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET