Boost logo

Boost Users :

Subject: Re: [Boost-users] [BGL] passing a graph from one function to another
From: Andrew Sutton (andrew.n.sutton_at_[hidden])
Date: 2008-11-26 08:39:34


> > main()
> > {
> > graph_t g = fun_A();
> > fun_B(g);
> > }
>
>
> I tried as you suggested, and it does work in Release mode (Visual Studio
> 2005), but NOT in Debug mode. Very strange.
> The CPU keeps running at the line
> return myGraph;
> and does not go further. Any suggestions? Thanks!
>

Debug it and break the process while its "stuck". That should give you some
idea why it may not be working. It sounds like it may be broken copy
constructor or some place variable wasn't initialized correctly.

It's also hard to say without more context. You might try posting your code
or something similar to it.

Andrew Sutton
andrew.n.sutton_at_[hidden]



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