Re: Memory corrupting, while retrive the query generated

2009-05-08 Thread walter harms
Ravi raj schrieb: > Dear walter Harms, > > Thanks for your valuable solution, but in the code which > you provided is printing only one row , if i try to print whole table, > or 2, or 3, columns fully means its giving segmentation fault, kindly > check the below code for furthur in

Re: Memory corrupting, while retrive the query generated

2009-05-08 Thread Ravi raj
| | } | //free(sel_smt); mysql_free_result(res); mysql_close(MySQL); exit(0); } ------code ends here Thanks and regards, Ravi - Original Message - From: "walter

Re: Memory corrupting, while retrive the query generated

2009-05-07 Thread walter harms
hi ravi, this works for me. it should help you to get a starting point re, wh /* simpple DB connect test gcc -L/usr/lib/mysql -lmysqlclient connect.c */ #define _GNU_SOURCE #include #include #include int main() { MYSQL *MySQL; MYSQL_ROW row; MYSQL_RES *res;

Memory corrupting, while retrive the query generated

2009-05-07 Thread Ravi raj
Dear All, I want to connect MYSQL with following C application , while i'm trying to retrive the query generated , its corrupting the memory. Is there any solution , to retrive the query generated with out any memory crashes? Please help me to solve this problem. code a