New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory allocation - memory not freed in DD? #42
Comments
Changing the function drivedist.c solves the problem. The memory can be freed after copying data to postgres data structure, when query is finished. Changes to drivedist.c (end of file) #endif |
Thanks a lot for digging into this! |
Nice solution, see issue #46 |
Hi Christian! |
Hi all! Without having checked the code, there is certain probability that the issue Best Regards, Kurt -----Ursprüngliche Nachricht----- Hi Christian! Reply to this email directly or view it on GitHub: |
Well, I hope it. If you read the documentation in the links, you can call Christian 2011/11/15 Daniel Kastl <
Atentamente, |
Hi Daniel, I found it on PostgreSQL documentation. Link: http://developer.postgresql.org/pgdocs/postgres/xfunc-c.html Although the PostgreSQL backend is written in C, it is possible to write All functions accessed by the backend must present a C interface to the
|
Hi againt Daniel, If we analize these code line from link: [32.3] How can I include a non-system C header file in my C++ code? If you are including a C header file that isn't provided by the system, you extern "C" { int main() All we have to do to solve the problem is: add to file boost_wrapper.cpp extern "C" { *path = (path_element_t *) palloc(sizeof(path_element_t) * ... Let me know waht do you think. Christian 2011/11/16 Christian F. Gonzalez Di Antonio christiangda@gmail.com
Atentamente, |
Tried this and it seem to work but introduces crashes after 10> calls :( For reference, trying to use palloc in C++ without extern "C" cases undefined symbol crashes in runtime. |
I merged Pull Request #67 into sew-devel-2_0, but I'll add a 1.x tag for this. |
Closing - Wont fix. |
As reported by this user there seems to be a memory allocation problem in DD.
http://lists.osgeo.org/pipermail/pgrouting-users/2011-August/000771.html
The text was updated successfully, but these errors were encountered: