rajesh
9th December 2009, 11:22
why deleting QProcess is crashing?
see my code :
{
...
m_pFindinFilesProcess = new QProcess(this);
connect(m_pFindinFilesProcess, SIGNAL(finished(int)), this, SLOT(onFindFileSearchFinished()));
connect(m_pFindinFilesProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadFindFileResult()));
m_pFindinFilesProcess->start("grep", processParam);
}
void MainWindow::onFindFileSearchFinished()
{
if(m_pFindinFilesProcess)
{
delete m_pFindinFilesProcess; --> Crashing here
m_pFindinFilesProcess = NULL;
}
}
:rolleyes:Must Watch:
See how we can connect digital world objects to our day to day life…. (http://www.tech2fame.info/2009/11/pranav-mistry-thrilling-potential-of.html)
see my code :
{
...
m_pFindinFilesProcess = new QProcess(this);
connect(m_pFindinFilesProcess, SIGNAL(finished(int)), this, SLOT(onFindFileSearchFinished()));
connect(m_pFindinFilesProcess, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadFindFileResult()));
m_pFindinFilesProcess->start("grep", processParam);
}
void MainWindow::onFindFileSearchFinished()
{
if(m_pFindinFilesProcess)
{
delete m_pFindinFilesProcess; --> Crashing here
m_pFindinFilesProcess = NULL;
}
}
:rolleyes:Must Watch:
See how we can connect digital world objects to our day to day life…. (http://www.tech2fame.info/2009/11/pranav-mistry-thrilling-potential-of.html)