Re: Memory leaks using MySQL C Api

2004-01-19 Thread KKoTY
]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Sunday, January 18, 2004 8:31 AM Subject: Re: Memory leaks using MySQL C Api > Agreed, I am not calling mysql_store_result(). I attempted to add > my_free() but the function does not seem to exist, it is also not liste

Re: Memory leaks using MySQL C Api

2004-01-18 Thread John McCaskey
Agreed, I am not calling mysql_store_result(). I attempted to add my_free() but the function does not seem to exist, it is also not listed in the API docs for the c api. As such it still seems that there should be no leak, but yet I do get one. Thanks for the idea anyway Chris, maybe you can cla

Re: Memory leaks using MySQL C Api

2004-01-17 Thread Aftab Jahan Subedar
Hey wait a minute. Where did you get the my_free(), may be you are trying to say mysql_free(), but then that is used only if result set is used/called. But the code does not show any result set call. ie. mysql_use_result() or mysql_store_result(). So, the question now, how come there is a leak

Re: Memory leaks using MySQL C Api

2004-01-17 Thread Chris Nolan
Hi! You're looking for the function my_free(). Enjoy! Regards, Chris John McCaskey wrote: I have the following code: //try the mysql connection mysql_init(&mysql_connection); if(!mysql_real_connect(&mysql_connection, db_host, db_user, db_pass, db_db, 0, NULL, 0)) {

Memory leaks using MySQL C Api

2004-01-16 Thread John McCaskey
I have the following code: //try the mysql connection mysql_init(&mysql_connection); if(!mysql_real_connect(&mysql_connection, db_host, db_user, db_pass, db_db, 0, NULL, 0)) { flockfile(stderr); fprintf(stderr, "%s: Failed to connect t

memory leaks

2003-08-19 Thread Johannes Philipp Grohs
Hello, I am using the mysqlclient library 4.0.14 on win2k. It works fine but there are memory leaks I have no solutions for. I have tried this: int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { MYSQL MySQL; mysql_init(&M

[memory leaks when using c api on linux - checked using dmalloc]

2002-10-18 Thread cmasters
>Description: dmalloc identifies memory leaks when using mysqlclient c library once a malloc and associated free have been used. Although these memory leaks are not within the mysqlclient library itself they are found in mainly nsswitch.c and elf libraries such as dl-open.c and dl-versio

RE: memory leaks in libmysqlclient.

2002-04-26 Thread Michael Widenius
Hi! > "domi" == domi <[EMAIL PROTECTED]> writes: domi> Hi ! domi> Thank You for the response ! domi> so I don't think it's solaris-problem. domi> Ofcource it can still be "my code" but I have not found domi> the problem... domi> So I took a chance and passed this question to list. domi

RE: memory leaks in libmysqlclient.

2002-04-25 Thread domi
somewhere. 40 - 50 MB in a week is not normal, or what You think ?? I'will test hoard library asap, lets see what happens ! Thank You for Reading. =d0Mi= Original Message - Date: 25-Apr-2002 18:30:57 +0200 From: Rick Flower <[EMAIL PROTECTED]> To: MySQL Mailing List &l

Re: Re: memory leaks in libmysqlclient.

2002-04-25 Thread Rick Flower
dOMi writes: >However, after only a week the memory usage ocf this process >has been grown to 40 - 50 MB so there's have to leakage somewhere. What you *may* be seeing is standard memory fragmentation that many Unix' systems have with the standard allocator.. You don't mention what platform you'

memory leaks in libmysqlclient.

2002-04-24 Thread domi
Hi ! I've made a quite simple program in C using libmysqlclient. The program runs as daemon in Solaris 8 (sparc) and checks some values in the database every 5 minutes. I have only ONE malloc/realloc call in "my" code and this code is called only when needed (when DB check is signaling it to do

Re: Memory Leaks ?

2002-02-04 Thread iain furneaux
y, February 04, 2002 7:51 PM Subject: Re: Memory Leaks ? > iain furneaux writes: > > yes after every call, that was the first thing I tried, it made the > > situation better but not cured it. Are there any circumstances where > > mysql_free_result() will not free the result ?

Re: Memory Leaks ?

2002-02-04 Thread Sinisa Milivojevic
iain furneaux writes: > yes after every call, that was the first thing I tried, it made the > situation better but not cured it. Are there any circumstances where > mysql_free_result() will not free the result ? does it have to be called > before any further mysql_real_query() calls are made even

Re: Memory Leaks ?

2002-02-04 Thread iain furneaux
PROTECTED]> Sent: Monday, February 04, 2002 7:38 PM Subject: Re: Memory Leaks ? > iain furneaux writes: > > Im afraid I do not know where the possible leaks are as I only have the > > mtrace dump which I included a section of in my first posting, I have > > included the

Re: Memory Leaks ?

2002-02-04 Thread Sinisa Milivojevic
iain furneaux writes: > Im afraid I do not know where the possible leaks are as I only have the > mtrace dump which I included a section of in my first posting, I have > included the whole dump. As the current code runs into several hundred lines > I do not think it would be helpful > > mtrace du

Re: Memory Leaks ?

2002-02-04 Thread iain furneaux
helps ? - Original Message - From: "Sinisa Milivojevic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 7:23 PM Subject: Re: Memory Leaks ? > iain furneaux writes: > > I have just tried the 3.23.47 rel

Re: Memory Leaks ?

2002-02-04 Thread Sinisa Milivojevic
iain furneaux writes: > I have just tried the 3.23.47 release and the same problem seems to be > occuring, is there anything I could be doing in my code that would make it > look like the problem is coming from libmysqlclient.so.10 ? > Post your code to the list and pinpoint where is memory lea

Re: Memory Leaks ?

2002-02-04 Thread iain furneaux
> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 6:47 PM Subject: Re: Memory Leaks ? > iain furneaux writes: > > appologies the MySQL version is 3.22.32 (sorry fat fingers! :-) ) > > > >

Re: Memory Leaks ?

2002-02-04 Thread Sinisa Milivojevic
iain furneaux writes: > appologies the MySQL version is 3.22.32 (sorry fat fingers! :-) ) > Just try our latest 3.23 C API -- Regards, __ ___ ___ __ / |/ /_ __/ __/ __ \/ /Mr. Sinisa Milivojevic <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Fulltime Develo

Re: Memory Leaks ?

2002-02-04 Thread iain furneaux
appologies the MySQL version is 3.22.32 (sorry fat fingers! :-) ) - Original Message - From: "Sinisa Milivojevic" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 12:15 PM Subject: Re: Memory Leaks ? &g

Re: Memory Leaks ?

2002-02-04 Thread Sinisa Milivojevic
iain furneaux writes: > HI, > > Firstly I hope this is the right list as the enquiry I have I do not class > as a bug due to my uncertainty about where the problem lies. > > I have been using the C API for MySQL 2.22.32 on Linux 2.2.14 and I have > noticed that my program was getting to an unman

Memory Leaks ?

2002-02-03 Thread iain furneaux
HI, Firstly I hope this is the right list as the enquiry I have I do not class as a bug due to my uncertainty about where the problem lies. I have been using the C API for MySQL 2.22.32 on Linux 2.2.14 and I have noticed that my program was getting to an unmanageable size in memory, there is a s

mySQL memory leaks !!! (?)

2001-08-20 Thread Jakub Trzetrzelewski
test.c -o test -lmysqlclient -g At the software creating, it's worth using (at least for tests) functions from header . It's very usefull for finding memory leaks. Now, take a look at second example: - test2.c #include #include

memory leaks problem

2001-05-01 Thread munish-gupta
hi, i have a process running in daemon to maintain a database connection i am using mysql_ping before every query the program is having large memory leaks is it because of mysql_ping what happens to previous mysql handler is it freed or re used pls reply munish