corrupted double-linked list



  • 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];



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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.