mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-06 18:56:40 -04:00
README: how to run valgrind to search for memory leaks
This commit is contained in:
parent
ac7541aaf7
commit
955ad030d0
@ -238,6 +238,15 @@ But SQLiteC++ does not support the fully thread-safe "Serialized" mode of SQLite
|
|||||||
because of the way it shares the underlying SQLite precompiled statement
|
because of the way it shares the underlying SQLite precompiled statement
|
||||||
in a custom shared pointer (See the inner class "Statement::Ptr").
|
in a custom shared pointer (See the inner class "Statement::Ptr").
|
||||||
|
|
||||||
|
### Valgrind memcheck
|
||||||
|
|
||||||
|
Run valgrind to search for memory leaks in your application, the SQLiteCpp wrapper, or the sqlite3 library.
|
||||||
|
Execute the following command under Unix like OS (Linux, MacOS or WSL2/Ubuntu under Windows Subsystem for Linux):
|
||||||
|
|
||||||
|
```Shell
|
||||||
|
valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose build/SQLiteCpp_example1
|
||||||
|
```
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
### The first sample demonstrates how to query a database and get results:
|
### The first sample demonstrates how to query a database and get results:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user