Changes between Version 18 and Version 19 of Docs/Prog/Manual/ApplicationLibraries/lib825ev/Comm/CCommSerial
- Timestamp:
- 01/23/24 11:24:45 (10 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/Prog/Manual/ApplicationLibraries/lib825ev/Comm/CCommSerial
v18 v19 44 44 }}} 45 45 46 **NOTE** When "new" is used to instantiate an object be sure to " free" the memory when the use of the object is complete. Otherwise a memory leak will occur and the 825 may run out of memory.46 **NOTE** When "new" is used to instantiate an object be sure to "delete" the memory when the use of the object is complete. Otherwise a memory leak will occur and the 825 may run out of memory. 47 47 48 48 {{{ 49 49 pSerial->Close(); 50 free(pSerial);50 delete pSerial; 51 51 pSerial = NULL; // Good practice to set pointer to NULL after free 52 52 }}}