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

Closed 19 years ago

Last modified 19 years ago

#367 closed defect (duplicate)

a problem with Structs? TOLBase falls down

Reported by: imendez Owned by: Víctor de Buen Remiro
Priority: highest Milestone:
Component: Various Version: head
Severity: blocker Keywords:
Cc:

Description

Hi,
the next code yields a TOLBase crash. Cuiously, the first time you compile the
code everything works right, but when you decompile and compile again, TOLBase
falls down.
Well, not everything works right, because if you make a table from "SInc", the
columns has no names.
In fact, I'm doing several trials and TOL has a very strange behaviour with the
Structs.
Even, in 13th March nigthly built version, "SInc" couldn't be created.

/
Struct IncDecSt
(

Real MinForecast,
Real MaxForecast,
Real MinIncEjemp,
Real MaxIncEjemp,
Real MinIncPorc,
Real MaxIncPorc

);
Set SInc = SetOfSet( IncDecSt(0, 2, 0, 0, ?, ?),

IncDecSt(2, 5, 0, 1, ?, ?));

Text minForecast = SqlFormatReal(SInc[1]->MinForecast, GesAct);
Text maxForecast = SqlFormatReal(SInc[2]->MaxForecast, GesAct);
/

Also, the next code returns an error:

/
Struct IncDecSt
(

Real MinForecast,
Real MaxForecast,
Real MinIncEjemp,
Real MaxIncEjemp,
Real MinIncPorc,
Real MaxIncPorc

);
Set SInc = SetOfSet( IncDecSt(0, 2, 0, 0, ?, ?),

IncDecSt(2, 5, 0, 1, ?, ?));

Set s1 = SInc[1];
Set s2 = SInc[2];
Real x = s1->MinForecast;
Real y = s2->MaxForecast;

Text minForecast = SqlFormatReal(x, GesAct);
Text maxForecast = SqlFormatReal(y, GesAct);

/

The error message is:

/

ERROR: [40] MinForecast no es un campo válido para la estructura maxForecast

ERROR: [41] MinForecast no es campo de la estructura maxForecast

Warning: [8] La función Field (ó -> ) ha fallado en :
s1->MinForecast

ERROR: [42] x no se pudo crear.

ERROR: [43] MaxForecast no es un campo válido para la estructura maxForecast

ERROR: [44] MaxForecast no es campo de la estructura maxForecast

Warning: [9] La función Field (ó -> ) ha fallado en :
s2->MaxForecast

ERROR: [45] y no se pudo crear.

ERROR: [46] x no es un objeto valido para el tipo Real.

ERROR: [47] Argumentos erróneos para Text SqlFormatReal (Real rea, Real gestor)

ERROR: [48] minForecast no se pudo crear.

ERROR: [49] y no es un objeto valido para el tipo Real.

ERROR: [50] Argumentos erróneos para Text SqlFormatReal (Real rea, Real gestor)

ERROR: [51] maxForecast no se pudo crear.
/

Regards

Change History (3)

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

Owner: changed from danirus to Víctor de Buen Remiro

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

Resolution: duplicate
Status: newclosed

Hello

This is the same behaviour observed and isolated in bug 361.

We are working on it

* This bug has been marked as a duplicate of 361 *

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

Hello

This is a duplicate of bug 361.

http://bugs.tol-project.org/cgi-bin/bugzilla/show_bug.cgi?id=367

Problem has been fixed in CVS.

Thanks to report it

* This bug has been marked as a duplicate of 361 *

* This bug has been marked as a duplicate of 361 *

Note: See TracTickets for help on using tickets.