andyp
20th December 2010, 15:17
On Win32, using QT 4.7.1, why do I always get a "trying to free an invalid heap pointer" crash when the following goes out of scope:
{
QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
// ... some more code (or no code at all)
}
every time !!!
The crash happens in the C++ destructor of QList<QPrinterInfo>.
It happens irrespective of current thread (GUI or otherwise).
I had the problem in 4.5.3.It went away in 4.6.2 but it is back in 4.7.1.
Any help would be greatly appreciated.
{
QList<QPrinterInfo> list = QPrinterInfo::availablePrinters();
// ... some more code (or no code at all)
}
every time !!!
The crash happens in the C++ destructor of QList<QPrinterInfo>.
It happens irrespective of current thread (GUI or otherwise).
I had the problem in 4.5.3.It went away in 4.6.2 but it is back in 4.7.1.
Any help would be greatly appreciated.