[AGENT++] Can't free Vb when value is set.

Dario maljur dmaljur at elma.hr
Fri Aug 11 16:22:09 CEST 2006


Hi.

I have a strange error lately. When allocating array of Vb-s I can't delete
them when 

Value is set in vb. The same problem occurs when declaring Vb like this:

Vb vb;

vb.set_value(some_value);

 

If this function is called when program (in console on WinXP) reaches end of
scope it automatically tries to call 

Destructor of Vb witch should deallocate all reserved memory. But then
throws an exception.

Am I doing something wrong? The same thing happens when in plane main() vb
is declared and value set.

But when value is not set, program works fine. Anybody has any idea what
could this be?




More information about the AGENTPP mailing list