summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2013-03-07 17:51:24 +0100
committerArmin Rigo <arigo@tunes.org>2013-03-07 17:51:24 +0100
commit0d03166e2c93f8b668cb92d6f4dcf6d963ead2ad (patch)
treeaf965fa37443b9a26ccadf34a4d6805a27a027eb /doc
parent360e17771b55c921c18ff8cbe7ea7808512261ac (diff)
downloadcffi-0d03166e2c93f8b668cb92d6f4dcf6d963ead2ad.tar.gz
Add warnings about keeping alive the library object.
(transplanted from c28026358db53c84e3adc56029f69db0d7f0c58b)
Diffstat (limited to 'doc')
-rw-r--r--doc/source/index.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/source/index.rst b/doc/source/index.rst
index 4a7ec8c..53bd273 100644
--- a/doc/source/index.rst
+++ b/doc/source/index.rst
@@ -458,6 +458,10 @@ as ``dlopen()`` does dynamically in C.
For the optional ``flags`` argument, see ``man dlopen`` (ignored on
Windows). It defaults to ``ffi.RTLD_NOW``.
+This function returns a "library" object that gets closed when it goes
+out of scope. Make sure you keep the library object around as long as
+needed.
+
.. _below:
@@ -621,6 +625,10 @@ not recommended.
check. Be sure to have other means of clearing the ``tmpdir``
whenever you change your sources.
+This function returns a "library" object that gets closed when it goes
+out of scope. Make sure you keep the library object around as long as
+needed.
+
Working with pointers, structures and arrays
--------------------------------------------