[libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-02 Thread Shakthi Kannan
nnect. Please check the option settings\n"); } else { /* Do something, and delay */ dbi_conn_close(conn); } dbi_shutdown(); } return 0; } === END === I am trying to do a task after the database connect, give a delay and loop around

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-03 Thread Shakthi Kannan
;t see any increase in dynamic memory allocation. I check with 'pmap -x ' and observe the mapping entry of "[ anon ]" in its output. Thanks for the quick reply! SK -- Shakthi Kannan http://www.shakthimaan.com ---

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-04 Thread Shakthi Kannan
.fc14.i686 SK -- Shakthi Kannan http://www.shakthimaan.com -- BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The must-attend event for mobile developers. Connect with experts. Get tools for creating Super

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-08 Thread Shakthi Kannan
et_option(conn, "dbname", "test"); dbi_conn_set_option(conn, "encoding", "UTF-8"); if (dbi_conn_connect(conn) < 0) { printf ("Could not connect\n"); } else { dbi_conn_close(conn); } } dbi_shutdow

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread Shakthi Kannan
Hi, Replying to my own post: --- On Tue, Aug 9, 2011 at 11:30 AM, Shakthi Kannan wrote: |    else { |      dbi_conn_close(conn); |    } \-- With libdbi-0.8.3, libdbi-drivers-0.8.3 adding a sleep(1) after dbi_conn_close(conn) doesn't cause any leak. SK -- Shakthi Kannan

Re: [libdbi-users] Memory leak when using dbi_initialize in loop

2011-08-09 Thread Shakthi Kannan
chive/forum.php?forum=libdbi-cvs Thanks for your prompt response. SK -- Shakthi Kannan http://www.shakthimaan.com -- uberSVN's rich system and user administration capabilities and model configuration take the has