In the constructor of the advisor, you actually do not subscribe the advisor but the advisor's propagator! And in dispose you cancel the advisor. Boom!
Cheers Christian -- Christian Schulte, www.ict.kth.se/~cschulte/ > -----Original Message----- > From: David Rijsman [mailto:[email protected]] > Sent: Friday, February 15, 2013 11:18 AM > To: [email protected]; [email protected] > Subject: RE: [gecode-users] Custom propagator with custom advisors > > Hi Christian, > > wonderful, that is indeed a mistake but that constructor is not invoked and does > not resolve the problem, > > > > > David J. Rijsman > Algorithm Lead > Quintiq > > T +31 (0)73 691 07 39 > F +31 (0)73 691 07 54 > M +31 (0)62 127 68 29 > E [email protected] > I www.quintiq.com > > > >>> > From: "Christian Schulte" <[email protected]> > To: "'David Rijsman'" <[email protected]>, <[email protected]> > Date: 15-2-2013 11:13 > Subject: RE: [gecode-users] Custom propagator with custom advisors > > Hi, > > The TestPropagator constructor for cloning is broken! You update MCouncil > with itself! > > Cheers > Christian > > -- > Christian Schulte, www.ict.kth.se/~cschulte/ > > > > -----Original Message----- > > From: [email protected] [mailto:[email protected]] On > > Behalf Of David Rijsman > > Sent: Friday, February 15, 2013 11:04 AM > > To: [email protected] > > Subject: [gecode-users] Custom propagator with custom advisors > > > > Hi, > > > > attached I have small example implementing a propagator on two views > > (does > > nothing) with its own advisors. I get an error at its end of its life > > and > I can not > > figure out what I am doing wrong. Any pointers what I am missing? > > > > The error happens in line 64: MCouncil.dispose(home); > > > > thanks, > > > > > > > > > > > > David J. Rijsman > > Algorithm Lead > > Quintiq > > > > T +31 (0)73 691 07 39 > > F +31 (0)73 691 07 54 > > M +31 (0)62 127 68 29 > > E [email protected] > > I www.quintiq.com > > > > > _______________________________________________ Gecode users mailing list [email protected] https://www.gecode.org/mailman/listinfo/gecode-users
