PDA

View Full Version : Internal error: pc 0x0 in read in psymtab, but not in symtab.from the start



feraudyh
11th February 2014, 20:27
I know this kind of message is a sign I have corrupted memory but in my case it's happening so early it's amazing.
I'm seeing this in the debugger right from the moment the code enters the main window
before the ui->setupUI(this)
I put a breakpoint before the last line in my quoted program. The fields set to NULL are all pointers.


MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow),
m_camera(NULL),
m_database(NULL),
m_scan(NULL),
m_afisData(NULL)
{
ui->setupUi(this);


Does this mean the damage occurs so early?

ChrisW67
12th February 2014, 08:39
Is main() more complicated than:


int main(int argc, char **argv) {
QApplication app(argc, argv);
MainWindow w;
w.show();
return app.exec();
}

Do you have anything statically initialising in a global space?

feraudyh
12th February 2014, 22:13
Main is as simple as what you showed.

ChrisW67
14th February 2014, 06:49
And the other question?