logo       

Re: memory usage: msg#00109

db.sqlite.general

Subject: Re: memory usage

OK, another question.

for each time I call sqlite_get_table, a pointer is needed to pass into
it. sqlite_get_table will return the results of the query as with the
address of the pointer. If without freeing this table, and using the
same pointer over and over, the contents of the pointer (the new table
its pointing to) will be the same chunk of memory (but updated) or will
be a new chunk (thus resulting in a memory leak)?

Colin

"D. Richard Hipp" wrote:
>
> Colin Shum wrote:
> > sqlite_get_table only uses so much memory (a block of it)
> > until I free it right? it wont use more memory on repeated
> > visits?
> >
>
> Correct.
>
> The SQLite test suite contains extensive checks for
> memory leaks. It is possible that you have found a
> memory leak that the test suite misses, though
> unlikely.
>
> --
> D. Richard Hipp -- drh-X1OJI8nnyKUAvxtiuMwx3w@xxxxxxxxxxxxxxxx -- 704.948.4565
>
> To unsubscribe from this group, send an email to:
> sqlite-unsubscribe-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/

To unsubscribe from this group, send an email to:
sqlite-unsubscribe-VgYJa0VH1e9BDgjK7y7TUQ@xxxxxxxxxxxxxxxx



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise