Open GoogleCodeExporter opened 9 years ago
The first problem I observe is not related to the memory. When del clist is
processed, the internal class representing the face handle is deleted while it
is still referenced by face. If my understanding of the swig code is correct,
the face belongs to the pair and when the pair is deleted, the face is also
deleted. I'll try to come up with a minimal example and post on the swig
mailing list to be sure.
Original comment by sloriot...@gmail.com
on 13 Dec 2013 at 7:42
[deleted comment]
I don't know if this is the "proper" fix, but I have been able to run stably by
adding a typemap in declare_triangulation_2.i which makes copies of the
Face_handle when pulled out of an edge. My attempt to do this in git (note
that there are other changes in that repo related to adding support Apollonius
Graphs, my next project...):
https://code.google.com/r/rustychris-apollonius/source/diff?spec=svnb297408ae5d7
01f365f856372b6622b3adc5e59d&r=b297408ae5d701f365f856372b6622b3adc5e59d&format=s
ide&path=/SWIG_CGAL/Triangulation_2/declare_triangulation_2.i
A regular diff is attached.
cheers
Original comment by RustyCh...@gmail.com
on 14 Dec 2013 at 12:07
Attachments:
This looks like a hack :) but agree that it should work in this specific case.
I made some tests and the problem seems to happen only when using the output
iterator.
I sent an email to the swig mailing with a minimal example to see what is wrong
with my code. As soon as I get an answer I let you know.
Original comment by sloriot...@gmail.com
on 16 Dec 2013 at 7:12
Any word from the swig folks?
thanks--
Original comment by RustyCh...@gmail.com
on 20 Feb 2014 at 8:33
Unfortunately no :( I need to invest some time to debug this.
Original comment by sloriot...@gmail.com
on 20 Feb 2014 at 9:31
Original issue reported on code.google.com by
RustyCh...@gmail.com
on 5 Dec 2013 at 8:34Attachments: