My apologies if this question is better suited in the newbie forum. Please let me know. I have a dialog that I am creating that works fine in debug mode but in release mode it locks up. I'm not really sure why but I suspect a pointer to Null somewhere. Any ideas?

Qt Code:
  1. /*
  2.  * newnetworkdialog.h
  3.  * bkupsim
  4.  *
  5.  * Created by Andrew White on 6/23/08.
  6.  * Copyright 2008 __MyCompanyName__. All rights reserved.
  7.  *
  8.  */
  9.  
  10. #ifndef NEWNETWORKDIALOG_H
  11. #define NEWNETWORKDIALOG_H
  12.  
  13. #include<QDialog>
  14.  
  15. class QFormLayout;
  16. class QLineEdit;
  17. class QComboBox;
  18.  
  19. class NewNetworkDialog : public QDialog {
  20. Q_OBJECT
  21. public:
  22. NewNetworkDialog(QWidget* parent = 0);
  23. signals:
  24.  
  25. private slots:
  26. void accept();
  27. void reject();
  28.  
  29. private:
  30. QLineEdit* nameLineEdit;
  31. QLineEdit* ipLineEdit;
  32. QLineEdit* netmaskLineEdit;
  33. QComboBox* thruputComboBox;
  34. QFormLayout* formLayout;
  35. QDialogButtonBox* okCancelButtonBox;
  36.  
  37. };
  38.  
  39. #endif
  40. /*
  41.  * newnetworkdialog.cpp
  42.  * bkupsim
  43.  *
  44.  * Created by Andrew White on 6/23/08.
  45.  * Copyright 2008 __MyCompanyName__. All rights reserved.
  46.  *
  47.  */
  48.  
  49. #include "newnetworkdialog.h"
  50. #include<QtGui>
  51.  
  52. NewNetworkDialog::NewNetworkDialog(QWidget* parent) :
  53. QDialog(parent) {
  54.  
  55. nameLineEdit = new QLineEdit;
  56. ipLineEdit = new QLineEdit;
  57. netmaskLineEdit = new QLineEdit;
  58. thruputComboBox = new QComboBox;
  59. formLayout = new QFormLayout;
  60. formLayout->addRow(tr("Name:"), nameLineEdit);
  61. formLayout->addRow(tr("IP Address:"), ipLineEdit);
  62. formLayout->addRow(tr("Netmask:"), netmaskLineEdit);
  63. formLayout->addRow(tr("Thruput Type:"), thruputComboBox);
  64. thruputComboBox->addItem(tr("10-B-T"), 1000);
  65. thruputComboBox->addItem(tr("100-B-T"), 10000);
  66. thruputComboBox->addItem(tr("1000-B-T"), 100000);
  67.  
  68.  
  69. okCancelButtonBox = new QDialogButtonBox(QDialogButtonBox::Ok
  70. | QDialogButtonBox::Cancel);
  71.  
  72. formLayout->addRow(okCancelButtonBox);
  73. setLayout(formLayout);
  74. connect(okCancelButtonBox, SIGNAL(accepted()), this, SLOT(accept()));
  75. connect(okCancelButtonBox, SIGNAL(rejected()), this, SLOT(reject()));
  76. }
  77.  
  78. void NewNetworkDialog::accept() {
  79. QDialog::accept();
  80. }
  81.  
  82. void NewNetworkDialog::reject() {
  83. QDialog::reject();
  84. }
To copy to clipboard, switch view to plain text mode