Skip to content

Commit 8924deb

Browse files
author
Thiemo Wiedemeyer
committed
added note to header file.
1 parent f6a7bdf commit 8924deb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/protonect/include/libfreenect2/libfreenect2.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ class LIBFREENECT2_API Freenect2
106106
std::string getDeviceSerialNumber(int idx);
107107
std::string getDefaultDeviceSerialNumber();
108108

109+
/* Important note:
110+
* After passing a PacketPipeline object to libfreenect2 do not use or free the object,
111+
* libfreenect2 will take care. If openDevice fails the PacketPipeline object will get
112+
* deleted. A new PacketPipeline object has to be created each time a device is opened.
113+
*/
109114
Freenect2Device *openDevice(int idx);
110115
Freenect2Device *openDevice(int idx, const PacketPipeline *factory);
111116
Freenect2Device *openDevice(const std::string &serial);

0 commit comments

Comments
 (0)