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 14 years ago

Closed 14 years ago

Last modified 14 years ago

#1111 closed defect (fixed)

Objetos no borrados tras usar DatesOfSet y MatSerSet

Reported by: Víctor de Buen Remiro Owned by: Víctor de Buen Remiro
Priority: highest Milestone: Mantainance
Component: Kernel Version:
Severity: blocker Keywords:
Cc:

Description (last modified by Víctor de Buen Remiro)

El siguiente código TOL produce una pérdida de 7 objetos en cada iteración

Real maxIter = 10;
Real iter = 1;
Real nObj1 = ?;
Real nObj2 = ?;
Real lostObjects = ?;

Real nObj1 := Copy(NObject);
WriteLn("nObj1="<<nObj1);

Real While(iter<=maxIter, {
  Set dates = [[y2010m01d01,y2010m01d02,y2010m01d03]];
  Matrix data = Row(1,2,3);
  TimeSet tms = DatesOfSet(dates);
  Set serSet = MatSerSet(data,tms,dates[1]);
  iter := iter+1
});

Real nObj2 := Copy(NObject);
WriteLn("nObj2="<<nObj2);

Real lostObjects := (nObj2-nObj1)/(maxIter);
WriteLn("lost objects by iteration = "<<lostObjects);

Sin embargo, si eliminamos la línea que llama a MatSerSet ya no se pierde ni uno solo. Tampoco se pierden si usamos MatSerSet pero no DatesOfSet

  Set serSet = MatSerSet(data,C,dates[1]);

Change History (8)

comment:1 Changed 14 years ago by Víctor de Buen Remiro

Description: modified (diff)
Status: newaccepted

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

Summary: Objetos no borrados tras usar MatSerSetObjetos no borrados tras usar DatesOfSet y MatSerSet

comment:3 Changed 14 years ago by Víctor de Buen Remiro

(In [3292]) Refs #1111
Refs #1121
Refs #1126
Recompiling CppTools to be compatible with v2.0.1 b.0.60.alpha

comment:4 Changed 14 years ago by Víctor de Buen Remiro

(In [3302]) Refs #1111
Refs #1121
Refs #1126
Recompiling CppTools to be compatible with v2.0.1 b.0.60.alpha

comment:5 Changed 14 years ago by Víctor de Buen Remiro

(In [3303]) Refs #1111
Refs #1121
Refs #1126
Recompiling CppTools to be compatible with v2.0.1 b.0.60.alpha

comment:6 Changed 14 years ago by Víctor de Buen Remiro

Resolution: fixed
Status: acceptedclosed

(In [3304]) Fixes #1111
Fixes #1121
New virtual method GetSizeOf due to sizeof(*address_) is not working fine

comment:7 Changed 14 years ago by Víctor de Buen Remiro

(In [3305]) Refs #1111
Refs #1121
Fixing bugs wich were hiding by solved memory leak

comment:8 Changed 14 years ago by Víctor de Buen Remiro

(In [3306]) Fixes #1111
Fixes #1126
Local repository depends on new member TolPackage::_.version

Note: See TracTickets for help on using tickets.