Problem saving canvas

Hi rooters,

I’m using ROOT 5.34 and I’ve found some problems trying to save a canvas as an image (ps,eps) or as a root file with the “Save as” command from the File menu.

This is the error output:

Error: Symbol kSortByName is not defined in current scope  :0:
*** Interpreter error recovered *** 
Error: class,struct,union or type (unknown) not defined  :0:
Error in <TQObject::CheckConnectArgs>: slot TGFileContainer::Sort( kSortByName) does
 not exist
Error: Symbol kSortByType is not defined in current scope  :0:
*** Interpreter error recovered ***
Error: class,struct,union or type (unknown) not defined  :0:
Error in <TQObject::CheckConnectArgs>: slot TGFileContainer::Sort( kSortByType) does
 not exist
Error: Symbol kSortBySize is not defined in current scope  :0:
*** Interpreter error recovered ***
Error: class,struct,union or type (unknown) not defined  :0:
Error in <TQObject::CheckConnectArgs>: slot TGFileContainer::Sort( kSortBySize) does
 not exist
Error: Symbol kSortByOwner is not defined in current scope  :0:
*** Interpreter error recovered ***
Error: class,struct,union or type (unknown) not defined  :0:
Error in <TQObject::CheckConnectArgs>: slot TGFileContainer::Sort( kSortByOwner) doe
s not exist
Error: Symbol kSortByGroup is not defined in current scope  :0:
*** Interpreter error recovered ***
Error: class,struct,union or type (unknown) not defined  :0:
Error in <TQObject::CheckConnectArgs>: slot TGFileContainer::Sort( kSortByGroup) doe
s not exist
Error: Symbol kSortByDate is not defined in current scope  :0:
*** Interpreter error recovered ***
Error: class,struct,union or type (unknown) not defined  :0:
Error in <TQObject::CheckConnectArgs>: slot TGFileContainer::Sort( kSortByDate) does
 not exist
*** Interpreter error recovered ***

 *** Break *** segmentation violation

I’ve also noticed that I’ve got no problems when I used the command line with canvasname->SaveAs("file"). It could be a bug of the graphical interface?

Thank you.
Tina

This is weird … On with machine are you working ?
Can you try from the command prompt:

yourcanvas->Print(“yourcanvas.ps”);