Skip to main content
Home
for DLMS smart meters
Open source solutions for DLMS smart metering

Main navigation

  • Home
  • Products
  • About us
  • Open Source
  • Community
  • Forum
  • Downloads
User account menu
  • Log in

Breadcrumb

  1. Home
  2. Forums
  3. Memory Error

memory error

Forum Rules

Before commenting read Forum rules

Don't comment the topic if you have a new question.

You can create a new topic selecting correct category from Gurux Forum and then create a new topic selecting "New Topic" from the top left.

Profile picture for user mahsen
By mahsen , 15 September, 2021
Forums
Gurux.DLMS

hi dear,

i used "GXDLMSDirector.exe version 8.2.2109.0301" and "dlms c library" for stm micro controler,
i am monitoring heap memory,
first connect to micro and software ask "you need to read Association ..?" and i am click "yes",
software read my objects and show in GXDLMSDirector.exe at this time heap used 2572 byte,
i disconnected and delete all object in software list left side and connect again,
again to connect software ask "you need to read Association ..?" and i am click "yes",
I expect library c free old heap 2572 bytes and again get new heap or use the old memory that was taken for the first time,
but get new heap again and again and It does not release the old heap memory,

what?
can you help me؟

Mahsen
Thank you

Profile picture for user Kurumi

Kurumi

4 years 8 months ago

Hi,

Hi,

I believe that you are using malloc? I haven't heard from this, but I'll check this because usually meter implementations are not using malloc.

BR,
Mikko

Profile picture for user mahsen

mahsen

4 years 8 months ago

In reply to Hi, by Kurumi

Hi

Hi

Yes, I used malloc in meter's, do you have a solution for me not to use malloc?

Mahsen,

Profile picture for user Kurumi

Kurumi

4 years 8 months ago

Hi Mahsen,

Hi Mahsen,
Un-comment DLMS_IGNORE_MALLOC from gxignore.h. Check GuruxDLMSSimpleServerExample2 and GuruxDLMSServerExample2 to see how to use them without malloc.

BR,
Mikko

Profile picture for user mahsen

mahsen

4 years 8 months ago

Hi, Thank you. Mahsen

Hi,

Thank you.

Mahsen

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Tue, 06/09/2026 - 11:16
    gurux.dlms.java 4.0.95
  • Tue, 06/09/2026 - 10:03
    Gurux.DLMS.Python 1.0.199
  • Mon, 06/08/2026 - 13:39
    gurux.dlms.cpp 9.0.2606.0801
  • Mon, 06/01/2026 - 10:15
    gurux.dlms.cpp 9.0.2606.0101
  • Thu, 05/28/2026 - 16:06
    gurux.dlms.java 4.0.94

New forum topics

  • Error reading L&G Meter
  • Pass a TCP Client to GXNet
  • Australian EDMI Mk10D (Essential Energy area)
  • Strange mix of data notificiation vs get response
  • DLMS Connection
More

Who's new

  • Tuanhgg
  • Adel
  • charnon
  • Paddles
  • Miguel Ángel
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin