Hi all,
I am getting segmentation fault error while running my Qt application.Following is the gdb- backtrace output.
(gdb) backtrace
#0 0xb64daf62 in QString:perator= () from /usr/share/qt4/lib/libQtCore.so.4
#1 0xb80937ee in CCustomisationManager::dataDir (this=0x952ee88)
at CustomisationManager.cpp:179
#2 0x0807c9a3 in CUIFramework::loadPreferences (this=0x952ee88) at UIFramework.cpp:91
#3 0x0807d197 in CUIFramework::start (this=0x952ee88) at UIFramework.cpp:75
#4 0x0805d136 in main (argc=3, argv=0xbfed5424) at main.cpp:64
In CCustomisationManager.cpp ,line 179
CCustomisationManager::dataDir()
{
return m_dataDir;
}
CCustomisationManager::dataDir()
{
return m_dataDir;
}
To copy to clipboard, switch view to plain text mode
m_dataDir is declared as private in CCustomisationManager.h
private:
private:
QString m_dataDir;
To copy to clipboard, switch view to plain text mode
In CUIFRamework.cpp ,line 91
void CUIFramework::loadPreferences()
{
QString preferenceFilePath
= CCustomisationManager
::getInstance()->dataDir
() + "\\SensoFind_Preferences.xml";
}
void CUIFramework::loadPreferences()
{
QString preferenceFilePath = CCustomisationManager::getInstance()->dataDir() + "\\SensoFind_Preferences.xml";
}
To copy to clipboard, switch view to plain text mode
In line 75,
void CUIFramework::start()
{
loadPreferences();
}
void CUIFramework::start()
{
loadPreferences();
}
To copy to clipboard, switch view to plain text mode
m_dataDir is getting initialised in Init() in CCustomisationManager.cpp
void CCustomisationManager::Init()
{
m_DataDir
= QDir::currentPath() + QDir::separator()+ "\\test.xml";
}
void CCustomisationManager::Init()
{
m_DataDir = QDir::currentPath() + QDir::separator()+ "\\test.xml";
}
To copy to clipboard, switch view to plain text mode
I am not getting any idea on what is wrong,am left with no clue.....plz help me out in this regard...............
Regards,
Payal
Bookmarks