Changeset 52 in pacpussensors for trunk/Sick/SickLDMRSSensor.h


Ignore:
Timestamp:
06/16/14 16:04:34 (10 years ago)
Author:
cfougera
Message:

Memory leak bug resolved (dynamic memory allocation is no longer used).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Sick/SickLDMRSSensor.h

    r42 r52  
    2525#include <fstream>
    2626#include <string>
     27
     28#define BODY_MAX_SIZE   10000
    2729
    2830// Export macro for SickLDMRS DLL for Windows only
     
    7981    //! An array of characters : raw data then array of points or objects, depending on data type.
    8082    /** This array pointer points to allocated in memory (basically, in heap (malloc)) and then must be freed (free) when the whole message is decoded and stored. */
    81     char* body;
     83    char body[BODY_MAX_SIZE];
    8284
    8385    //! Time when the message is received.
Note: See TracChangeset for help on using the changeset viewer.