logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: Mysql Binding ..: msg#00002

Subject: Re: Mysql Binding ..
Sorry for the late answer.

I take a look at the code.
It appears that the only allocated code which is not freed concerns
string allocation when a new connection is created. This code is not
supposed to be called often. And more over it may be deallocated by
mysql_close function...

I did also some checks with gnatmem to see if memory is well managed on
a cycle connection, query, fetch result, free query on the sample
application. It appears that everything is correctly freed.

By the way,  good guide lines about the way to use API are exposed in
this sample application.

Patrice, would it be possible to either get parts of your code or to get
an analysis generated by gnatmem to search for memory leaks?

Denis

Le mar 06/04/2004 à 19:28, Michael Erdmann a écrit :
> It seems that you have used an old ACDE source. I guess
> this will taks some time to merge the source code. 
> 
> Denis can you do the job?!
> 
> 
> Michael
> 
> 
> On Sun, 2004-03-28 at 12:38, Patrice Freydiere wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> > 
> > 
> > Hi all, 
> > 
> > here is a new version of the native binding of mysql database. As i 
> > corrected 
> > several problems
> > 
> > - -> Queries does not free their (new_string) allocation as i massively use 
> > blobs with HUGES insert statement, i succeeded in panic my kernel !!  ;-)
> > 
> > - -> improving blob allocation to use unbounded_string allocated on heap 
> > instead 
> > of stack.
> > 
> > there is still some memory leak, but it will be interesting to have a wider 
> > view.
> > 
> > do you have any guide lines for code source writing ?? 
> > 
> > i still have multithreading issue on Win32 platform, not on Linux ??
> > any ideas (mysql documentation mention that mysql client library was, by 
> > default, compiled in thread safe mode )  ?? 
> > the issue is that my imgsvr stopped without any exception. I believe it's 
> > the 
> > mysql client because of it's crash when stressing this part of the service.
> > 
> > 
> > Patrice
> > 
> > ps: YES, Now a could load a 2go distributed picture database !!! 
> > 
> > - -- 
> > - ----
> > gpg --keyserver pgp.mit.edu --recv-key 139A6156
> > http://adaimgsvr.sourceforge.net
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.7 (GNU/Linux)
> > 
> > iQEXAwUBQGarC4ppebkTmmFWFAJ8hgQAg3bHlu+9GOfmre8u6Hiv8QSqrK2F7xvh
> > lOFLK9kwVvthjDy3C6LuBl+igM0k382SpYcm2BbBjF1h5UNvarQxjxM6QqIGbSXv
> > 7Z3l+z7SrBvHpLIWMP8EtUue/i9Fjy0ttPh07O5lv2KH9H1Sl68ptgP1osBX9VeS
> > xTAyXOQf1J0EAKN7unrrFHz+LqLbEttlj7RDLmpTDfNbUPyj+C6XVO3Zheqqz91A
> > mgCFYXgshcDRcPTLytPaw1BFianIi/4QcKKc0qnxQM9dJxOsU5COu4EOiYfMSzQy
> > cYQ2qMZed53IOFWrFYGmiAZhwvynqryXbffisXEWcCOlhQzuDPJ/LcyQ
> > =1+lb
> > -----END PGP SIGNATURE-----
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Gnade-develop mailing list
> http://gnade.sourceforge.net/
> https://lists.sourceforge.net/lists/listinfo/gnade-develop
-- 
Denis Chalon <denis.chalon@xxxxxxxx>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Gnade-develop mailing list
http://gnade.sourceforge.net/
https://lists.sourceforge.net/lists/listinfo/gnade-develop



<Prev in Thread] Current Thread [Next in Thread>