Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. corrupted double-linked list
Forum Updated to NodeBB v4.3 + New Features

corrupted double-linked list

Scheduled Pinned Locked Moved Unsolved General and Desktop
memory leakerror
2 Posts 1 Posters 2.1k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForestPoem
    wrote on 17 Dec 2015, 05:54 last edited by ForestPoem
    #1

    Continue to press and release the button.

    Then, an error occurs.

    *** Error in `./BCU': corrupted double-linked list: 0x00e95f48 ***

    source code.

    connect(ui->pushButton_6,SIGNAL(clicked()),this,SLOT(slot_chk6()));

    void DOTest::slot_chk6(){
    if(A[5]==0){
    ui->pushButton_6->setText("True");
    ui->pushButton_6->setStyleSheet(QString::fromUtf8("background-color: rgb(255, 255, 127);"));
    A[5]=1;
    GET_BCUData->SetShmData(72,true);
    }
    else if(A[5]==1){
    ui->pushButton_6->setText("False");
    ui->pushButton_6->setStyleSheet(QString::fromUtf8("background-color: rgb(0, 170, 255);"));
    A[5]=0;
    GET_BCUData->SetShmData(72,false);
    }

    }

    void SetShmData(int index, float value) {
    Shm->SetData(value, index);
    }

    DataDef *Shm;

    void SetData(float value, int index) {
    m_data[index] = value;
    }

    float m_data[256];

    1 Reply Last reply
    0
    • F Offline
      F Offline
      ForestPoem
      wrote on 17 Dec 2015, 06:27 last edited by
      #2

      pushbutton delete .
      new pushbutton create .
      Resolved.
      I do not know why the error has occurred.
      also
      I do not know why the Resolved.

      1 Reply Last reply
      0

      1/2

      17 Dec 2015, 05:54

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved