PDA

View Full Version : Program crash



Pragya
28th June 2007, 10:35
Hi all,
I am having the following pro file

TEMPLATE = lib
TARGET = myplugin
HEADERS = myplugin.h
SOURCES = myplugin.cpp
QT += sql
QT += gui
CONFIG += qt plugin


In the class implementation when i am trying to create any object say qDebug, it crashes.


bool myplugin:: open( )
{
qDebug() << "error" ; // crashes
return true;
}

even I tried creating QMessageBox , the program crashes.
Can anyone sort out my problem.

wysota
28th June 2007, 11:59
I'm sure it's not the qDebug() statement that causes the crash. Have you tried debugging?

Pragya
28th June 2007, 12:25
I am calling the built library from another application, there
the statement such as qDubug causes crash.

wysota
28th June 2007, 12:30
Does it work if you remove the qDebug() call? And what happens if you call qDebug() from that other application? Is is a Qt based app?

Pragya
28th June 2007, 12:33
Yes it works when I remove it, the other application is Qt application

wysota
28th June 2007, 20:40
Again, do qDebug() statements work inside the other app?

Pragya
29th June 2007, 05:08
Yes it works.

wysota
29th June 2007, 07:37
Did you try debugging?