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. 'std::length_error' Error

'std::length_error' 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.

By vamsi , 3 May, 2017
Forums
General discussion

Hi Mikko,

I am facing the fallowing error. While reading the large data.

1.0.31.7.0.255 | 1.0.91.7.0.255 | 1.0.1.7.0.255 | 1.0.9.7.0.255 | 1.0.32.7.0.255 | 1.0.33.7.0.255 | 1.0.14.7.0.255 | 1.0.1.8.0.255 | 1.0.9.8.0.255 | 0.0.1.0.0.255 | 0.0.0.1.2.255 | 0.0.94.91.8.255 | 0.0.96.7.0.255 | 0.0.0.1.0.255 | 0.0.94.91.0.255 | 0.0.96.2.0.255
<- 11:36:03 7E A0 19 03 41 F4 00 1E E6 E6 00 C0 01 81 00 07 01 00 5E 5B 03 FF 03 00 81 B3 7E
terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Aborted

This error is not specific to any function or for loop iteration in the client example code,If i skip some loops it will continue with the reading the data and again aborting the some where else. please guide me if u have experience with the this error. We are using Linux OS with C++ Gurux code.

Thanks,
cyient team

Profile picture for user Kurumi

Kurumi

9 years 3 months ago

'std::length_error' Error

Hi,

Can you send trace from send and received bytes to me by email? We can check this.

BR,
Mikko

  • Create new account
  • Reset your password

Hire Us!

Latest Releases

  • Mon, 07/27/2026 - 12:37
    gurux.dlms.cpp 9.0.2607.2701
  • Thu, 07/23/2026 - 16:19
    gurux.dlms.java 4.0.96
  • Thu, 07/09/2026 - 14:34
    Gurux.DLMS.Python 1.0.201
  • Fri, 06/26/2026 - 16:32
    Gurux.Service 3.0.2606.2601
  • Wed, 06/24/2026 - 08:36
    Gurux.DLMS.Python 1.0.200

New forum topics

  • Possible memory leak in file dlms.c, getCompactArrayItem(), getCompactArrayItem2()
  • Official Gurux.DLMS.Client.Example.Net fails during High GMAC secure association (Invalid PDU), while Gurux Director connects successfully
  • gurux_dlms.GXDateTime.GXDateTime object Error in Python
  • T_APPL_DATA_LN_N1 subtest 3 fails on an LN-only server regardless of the response to a non-existing-object GET
  • Version mismatch between Gurux.DLMS 9.x and Gurux.Common/Gurux.Serial 8.x
More

Who's new

  • RicardoNoula
  • nNqSRaTTgxVHfl…
  • IrvingBew
  • gwdrrdozhPBtTZpsxp
  • SherryDog
RSS feed
Privacy FAQ GXDN Issues Contact
Follow Gurux on Twitter Follow Gurux on Linkedin