Thanks for your reply..
I come across many forums but not able to get the answer.
my Blibs.so export function is
int ShowDebugWndw()
{
if(DebugViewDlg == NULL)
{
DebugViewDlg = new CDebugView(); //Program crashed when this calls happen
}
DebugViewDlg->ShowDebugWindow();
return 0;
}
int ShowDebugWndw()
{
if(DebugViewDlg == NULL)
{
DebugViewDlg = new CDebugView(); //Program crashed when this calls happen
}
DebugViewDlg->ShowDebugWindow();
return 0;
}
To copy to clipboard, switch view to plain text mode
My mainwindow class is
CDebugView *DebugViewDlg = NULL;
ui(new Ui::CDebugView) // Crashed at this line
{
ui->setupUi(this);
Initialize();
}
CDebugView::~CDebugView()
{
delete ui;
}
void CDebugView::ShowDebugWindow()
{
this->show();
this->raise();
}
CDebugView *DebugViewDlg = NULL;
CDebugView::CDebugView(QWidget *parent) : QMainWindow(parent),
ui(new Ui::CDebugView) // Crashed at this line
{
ui->setupUi(this);
Initialize();
}
CDebugView::~CDebugView()
{
delete ui;
}
void CDebugView::ShowDebugWindow()
{
this->show();
this->raise();
}
To copy to clipboard, switch view to plain text mode
It is crashed on asking QApplication instance.
so I created QApplication as global
QApplication app(NULL,NULL);
To copy to clipboard, switch view to plain text mode
It is working in Linux Opensuse 11.4 but crashing as usual in Opensuse 10.3.
My Architecture is
1. Qt GUI App --> loads a dynamic library Alib.so which doesn't have GUI (normal cpp applications)
2. Alib.so --> loads another dynamic library Blib.so which contains QMainWindow
Sorry all, I know its too complex in its architecture but Ii need to follow this.
Please help me to resolve this.
Thanks in advance..
Bookmarks