Boost logo

Boost Users :

From: Stephan Höfer (yg-boost-users_at_[hidden])
Date: 2003-08-05 02:21:50


Thank you for the hint. I've overseen that. But beside that there must be another mistake, because it crashes again
after that slight change of the code.

Douglas Gregor schrieb:

> ----- Original Message -----
> From: "Stephan Höfer" <yg-boost-users_at_[hidden]>
> > Graph tSubGraph = g.create_subgraph();
>
> Ah ha! You want:
>
> Graph& tSubGraph = g.create_subgraph();
>
> The root graph actually allocates a new child in its own memory space in
> create_subgraph(), and then gives you a reference to the subgraph. What's
> happening here is that subgraph is getting double-freed. Yes, we should do
> something to protect against this.
>
> Doug
>
>
> Info: <http://www.boost.org>
> Wiki: <http://www.crystalclearsoftware.com/cgi-bin/boost_wiki/wiki.pl>
> Unsubscribe: <mailto:boost-users-unsubscribe_at_[hidden]>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net