[Qt-interest] QPrcoess about stack and heap

Brad Hards bradh at frogmouth.net
Mon Mar 28 06:02:32 CEST 2011


On Mon, 28 Mar 2011 02:31:38 pm pengliang(彭亮) wrote:
> QProcess *tarProcess;
At this point, tarProcess is a pointer to unitialised memory.

>         tarProcess->start(tarCommandPath,QStringList() << "zcf" <<
> tarTgzPathName << dirsSourceDirList[i]);
And here you dereferenced the pointer.

What did you expect to happen?

Brad



More information about the Qt-interest-old mailing list