[gecode-users] memory management problem (newbie)

Christian Schulte schulte at imit.kth.se
Mon Jun 19 01:45:29 CEST 2006


The problem is that you do not delete a! When a search engine is created it
takes a copy, so the space from which the copy is taken must be deleted.

Christian

-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of Luis Otero
Sent: Saturday, June 17, 2006 2:23 AM
To: users at gecode.org
Subject: [gecode-users] memory management problem (newbie)


Hi,
I copied the sudoku-set example into a new class (inheriting directly from
Space instead of Example). It works fine (shouldn't it) but I just
discovered that in an endless loop (new and delete forever) the memory usage
grows without limit. I attached the code just in case somebody can help me.
Sure I am doing something wrong but I don't know what.

Thanks, L.

-- 
No hay nada más cobarde que un millón de dolares.
-- Dicho americano





More information about the gecode-users mailing list