<div dir="ltr">Hi Steve,<div style>Thanks for the update. I will definitely look at the codes. Currently I am struggling with my old laptop. I need to install linux again and set up all the environment. I will update the code and let you know.</div>
<div style><br></div><div style>-Razequl</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 17, 2013 at 1:31 AM, Stephen Woodbridge <span dir="ltr"><<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Razequl,<br>
<br>
I did a little more research on this problem and added try-catch block in your C++ wrapper function which is reporting: std::bad_alloc<br>
<br>
In general, I think for robustness we need all C++ code to include try blocks and clean up on exceptions to prevent server crashes and memory leaks on exceptions.<br>
<br>
I will check in my code, so that will give you a head start. And I except that a simple code review and addition of try blocks at appropriate places will identify the issues.<div class="im"><br>
<br>
Thanks,<br>
  -Steve<br>
<br>
On 5/7/2013 1:35 AM, Razequl Islam wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
Hi Steve,<br>
I also want to have a look at the possible problem. I am trying to set<br>
up the environment on my machine. I have the previous version. What do I<br>
need to do to get 2.0 working? Should I set up the environment from the<br>
scratch or should an update will do. Please let me know how I should<br>
proceed. I can also do the debugging once I have the environment in place.<br>
<br>
Thanks.<br>
- Razequl<br>
<br>
<br>
<br>
On Mon, May 6, 2013 at 11:32 PM, Stephen Woodbridge<br></div><div class="im">
<<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.com</a> <mailto:<a href="mailto:woodbri@swoodbridge.com" target="_blank">woodbri@swoodbridge.<u></u>com</a>>> wrote:<br>
<br>
    Hi Razequl,<br>
<br>
    I have been trying to integrate your bidirectional shortest path<br>
    code. I have merged the code into my pgrouting branch<br>
    "sew-devel-2_0", but it is crashing the back-end with a segv.<br>
<br>
    If you have time and want to look into this that would be great as I<br>
    would like to get this code working in 2.0.<br>
<br>
    I'm not sure if I found a bug in your code or I broke something when<br>
    I merged it, or for that matter that I even merged the correct code<br>
    :) because you sent email indicating that you fixed stuff. I merged<br></div>
    the code from master at <a href="https://github.com/zibon/__pgrouting" target="_blank">https://github.com/zibon/__<u></u>pgrouting</a><div class="im"><br>
    <<a href="https://github.com/zibon/pgrouting" target="_blank">https://github.com/zibon/<u></u>pgrouting</a>><br>
<br>
    I also ran into an issue that when I merged you code into the code<br>
    library, that the trsp broke, then take you code out and it works<br>
    again. I assume that there is some kind of function name or global<br>
    initialization issue. This does not seem to be an issue for trsp now<br>
    that the bi-dir code is in a separate library.<br>
<br>
    This might give you a chance to get your development/test/debug<br>
    environment setup and to familiarize yourself with the new source<br>
    code layout.<br>
<br>
    Let me know if you have time and I'll help point the way. If you are<br>
    tied up with class work, etc that clearly takes priority.<br>
<br>
    Thanks,<br>
       -Steve<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>