Memory Clear Issue in CGXDLMSVariant::Clear

Project: 
gurux.dlms.cpp

Dear Gurux,
I have some issues while reading association view in GuruxDLMSClientExample with Microcontroller.
We are using STM32 microcontroller with TrueStudio, Compiling and uploading successfully, After reading 10 packets in association view, Micorcontroller goes to HardFault Handler (Bus Fault).
We are not using threads, so no need to worry about the RAM, We have sufficient RAM and FLASH too.

The same code running in PC (Meter Directly Connected via COM port) without any issue, So we doubted in memory issue with the code.

So we are run the GuruxDLMSClientExample.exe in PC with Dr.Memory in tool, Which report "INVALID HEAP ARGUMENT to free" at 10th packet of association view. And reports same error more than 10 times.

Is freeing the same packet twice makes this issue. Please help us to move on.

Regards,
Yuvaraja.

Status: 
Closed (cannot reproduce)
Priority: 
Major
Category: 
Bug report
Component: 
Miscellaneous
Reporter: 
Yuvaraja
Luotu: 
To, 09/06/2018 - 16:56
Päivitetty: 
Ma, 05/13/2019 - 11:24