
https://bugzilla.novell.com/show_bug.cgi?id=483252 User kkaempf@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=483252#c4 --- Comment #4 from Klaus Kämpf <kkaempf@novell.com> 2009-03-09 02:57:10 MST --- I did the following in Ruby def create_solver() pool = Satsolver::Pool.new() ... loading solv files etc. ... solver = pool.create_solver() return solver end and worked with just the returned solver. This code crashed when Rubys garbage collection kicked in, because the 'pool' object was not referenced anymore. However, there is an internal reference through 'solver', undetectable for the garbage collector. Since 'Pool' is so central when working with Satsolver, one usually needs the destructor at end of the program. If, for memory optimisations, the Pool should be freed before, pool.discard() does this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.