babygal
21st June 2010, 10:05
I am getting runtime error as in attachment.
Code :
QDoubleSpinBox *AspinBox,*BspinBox,*CspinBox,*DspinBox;
func( float&,float&,float&,float&);
float a,b,c,d;
AspinBox= new QDoubleSpinBox;
BspinBox= new QDoubleSpinBox;
CspinBox= new QDoubleSpinBox;
DspinBox= new QDoubleSpinBox;
a = AspinBox->cleanText().toFloat();
b = BspinBox->cleanText().toFloat();
c = CspinBox->cleanText().toFloat();
d = DspinBox->cleanText().toFloat();
QString strA = QString::number( a );
QMessageBox::about(this,tr("ED apical trim in mm #"),strA ); //value read back is correct
func(a, b, c, d); //I guess this function is causing error
Error in attachment is read as :
Application.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
If you were in the middle of something, the information you were working on might be lost.
Please tell Microsoft about this problem.
We have created an error report that you can send to us. We will treat this report as confidential and anonymous. To see what data this error report contains, click here.
Code :
QDoubleSpinBox *AspinBox,*BspinBox,*CspinBox,*DspinBox;
func( float&,float&,float&,float&);
float a,b,c,d;
AspinBox= new QDoubleSpinBox;
BspinBox= new QDoubleSpinBox;
CspinBox= new QDoubleSpinBox;
DspinBox= new QDoubleSpinBox;
a = AspinBox->cleanText().toFloat();
b = BspinBox->cleanText().toFloat();
c = CspinBox->cleanText().toFloat();
d = DspinBox->cleanText().toFloat();
QString strA = QString::number( a );
QMessageBox::about(this,tr("ED apical trim in mm #"),strA ); //value read back is correct
func(a, b, c, d); //I guess this function is causing error
Error in attachment is read as :
Application.exe has encountered a problem and needs to close. We are sorry for the inconvenience.
If you were in the middle of something, the information you were working on might be lost.
Please tell Microsoft about this problem.
We have created an error report that you can send to us. We will treat this report as confidential and anonymous. To see what data this error report contains, click here.