Hello, my Qt app gives the following run time error
HEAP[testApp.exe]:
QInvalid address specified to RtlFreeHeap( 0D920000, 0F29F1C0 )uoted Text Here
But it's free from error when i comment out these lines
table->setCellWidget(currentRow,4,wid);
table->setCellWidget(currentRow,2,++wid);
table->setCellWidget(currentRow,1,(++wid));
Please i need help seriously.
for(int i=0; i<currentSem->courses->count(); i++)
{
QVBoxLayout *vlayer = new QVBoxLayout[3];
QWidget *wid = new QWidget[3];
vlayer->setMargin(5);
// vlayer->addSpacing(5);
vlayer->addWidget(currentSem->courses->at(i)->gradeBox);
wid->setLayout(vlayer);
(++vlayer)->addWidget(currentSem->courses->at(i)->hrsBox);
(++wid)->setLayout(vlayer);
(++vlayer)->addWidget(currentSem->courses->at(i)->delButt);
(++wid)->setLayout(vlayer);
int currentRow = table->rowCount();
table->insertRow(currentRow);
table->setItem(currentRow,0, currentSem->courses->value(i)->tableItem);
wid-=2;
table->setCellWidget(currentRow,4,wid);
table->setCellWidget(currentRow,2,++wid);
table->setCellWidget(currentRow,1,(++wid));
table->setRowHeight(i,50);
currentSem->courses->at(i)->tableItem->setFont(*fontt);
}