Changeset 12 for trunk/shared_serial/src/LxSerial.cpp
- Timestamp:
- 08/29/12 16:52:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/shared_serial/src/LxSerial.cpp
r8 r12 455 455 LxSerial::~LxSerial() 456 456 { 457 // Warn when you forgot to close the port before destruction.458 // We CANNOT call port_close() here, because port_close is a virtual function459 // and virtual functions cannot be called in constructors and destructors.460 457 if (hPort != INVALID_DEVICE_HANDLE) 461 p rintf("[LxSerial] Warning: you didn't call port_close before calling the destructor.\n");462 } 458 port_close(); 459 }
Note: See TracChangeset
for help on using the changeset viewer.