<br>yeah but all that is written inside GAPopulation.clone() is this:<br><br><br>virtual GAPopulation * clone() const {return new GAPopulation(*this);} //this code is written //inside GAPopulation.h<br><br><div><span class="gmail_quote">
On 5/15/06, <b class="gmail_sendername">Neil S. Harmon</b> <<a href="mailto:hneil@fastwebnet.it">hneil@fastwebnet.it</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It's a problem with the GAPopulation.<br><br>You need to go into the clone method and disable the partial copying (ATTRIBUTES<br>I think they called it). Make it copy the entire solution always.<br><br>That should fix it.
<br><br>Neil<br><br>>-- Original Message --<br>>Date: Sun, 14 May 2006 08:37:23 -0700<br>>From: "topojoy biswas" <<a href="mailto:topojoy.biswas@gmail.com">topojoy.biswas@gmail.com</a>><br>>To:
<a href="mailto:galib@mit.edu">galib@mit.edu</a><br>>Subject: [galib] illegal program termination<br>><br>><br>>In using the GASimpleGA(GaGenome &) constructor i encountered a illegal<br>>program termination error. On further analysis i found that the problem
<br>was<br>>with clone() member funtion.... some how it is not being able to allocate<br>>space for a new population object .. i dont know why.. i have chosen<br>>population size to be 1 and then also the error is persisting. Could any
<br>>one<br>>help me with this problem..<br>><br>>thank you,<br>><br>>--<br>>_________________________________________________________________________________<br>>TOPOJOY BISWAS<br>>Undergraduate(final year)
<br>>Electrical Engineering Department<br>>Jadavpur University<br>>Kolkata<br>>India<br>>[University registration no:83377 of 2002-03<br>>University roll no:02149<br>>Sec-A2]<br>>_______________________________________________
<br>>galib mailing list<br>><a href="mailto:galib@mit.edu">galib@mit.edu</a><br>><a href="http://mailman.mit.edu/mailman/listinfo/galib">http://mailman.mit.edu/mailman/listinfo/galib</a><br><br><br></blockquote></div>
<br><br clear="all"><br>-- <br>_________________________________________________________________________________<br>TOPOJOY BISWAS<br>Undergraduate(final year)<br>Electrical Engineering Department<br>Jadavpur University <br>
Kolkata<br>India<br>[University registration no:83377 of 2002-03<br>University roll no:02149<br>Sec-A2]<br>