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

Opened 14 years ago

Closed 14 years ago

#560 closed defect (fixed)

Error fatal destruyendo una variable

Reported by: Pedro Gea Owned by: Pedro Gea
Priority: blocker Milestone: Release 0.6
Component: General Keywords:
Cc:

Description

EL siguiente código hace caer TOL en la versión 57 (v2.0.1 b.0.57.alpha del 23/02/2011):

MMS::@DataSet dataSet = MMS::Container::ReplaceDataSet([[
  Text _.name = "DataSet"
]]);

MMS::@Variable variable = dataSet::CreateVariable([[
  Text _.name = "Variable";
  Text _.type = "Serie";
  Text _.expression = "Serie serie;"
]]);

Real variable::Delete(?);

Antes no daba problemas.

Change History (3)

comment:1 Changed 14 years ago by Pedro Gea

El error parece estar relacionado con el mecanismo que usa el método Delete que llama al objeto padre (el dataset) para que lo destruya cuando aún está viva la llamada al propio método Delete.

La destrucción de la variable vía:

Real dataSet::RemoveVariable(1);

no da problemas.

comment:2 Changed 14 years ago by Pedro Gea

(In [2333]) Se modifica provisionalmente el funcionamiento del mecanismo de borrado.
Véase el tique TOL#1116.
Refs #560

comment:3 Changed 14 years ago by Pedro Gea

Resolution: fixed
Status: newclosed

(In [2355]) Una vez solucionado TOL#1116 se revierten los cambios.
Closes #560

Note: See TracTickets for help on using tickets.