when I click any of the radioButons displayed in my mainWindow... runtime error program crashes(pic att)

This is my connect statement in constructor of main class
Qt Code:
  1. connect(ui->radioButton_1, SIGNAL(clicked()), this, SLOT(getInfo()));
  2. connect(ui->radioButton_2, SIGNAL(clicked()), this, SLOT(getInfo()));
To copy to clipboard, switch view to plain text mode 

Slot: getInfo
[code]
void Dialog::getInfo()
{
my_qlabel alpha; // create an instance of class my_qlabel to access public member variables

if(ui->radioButton_1->isChecked())
{
reCounter += 1;
reX[reCounter] = alpha.x1;
reY[reCounter] = alpha.y1;
reO[reCounter] = alpha.theta;
//ui->radioButton_1->setChecked(false);
}
else if ...
[code]

Not sure if the connect statement is causing the crash or the if statement

please help
Kind Regards