close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 17 years ago

Last modified 16 years ago

#519 assigned defect

error when pussing the statistics button in a series chart

Reported by: lmartiles Owned by: Jorge
Priority: high Milestone:
Component: Graphics Version: head
Severity: normal Keywords:
Cc:

Description

Hi guys,

Once the following code is compiled,

Matrix aux = Rand(2,100,0,1);
Set sers = MatSerSet(aux,Daily,y2000);
Text TclChartSerie(sers, SetOfSet(

TclArgSt("-title", "CHAIN, parametro"),
TclArgSt("-geometry", "814x692+10+10"),
TclArgSt("-type", "2")

));

and statistics are required pushing the corresponding button, you get an error ... and no statistics ;-)

cheers,

Artiles

Change History (2)

comment:1 Changed 17 years ago by Jorge

Hi, Artiles this bug is also present at 1.1.5.

It seems that the graph keep a reference to the tol object from where the data are obtained. This tol object is a local object to the function TclChartSerie and when the function exit the local object is destroyed then when the graph component try to access to that object then it fails. A possible solution is to compute the statistic when creating the graph and not when the statistics are requested.

regards,

Jorge

comment:2 Changed 16 years ago by Víctor de Buen Remiro

Owner: changed from jgarcia to Jorge
Status: newassigned
Note: See TracTickets for help on using tickets.