ich habe ein Problem mit der Anzahl von Bytes, die ich in
QByteArray übergeben möchte. Die Anzahl beträgt 146915328 ! (= 140 MB).
Code: Alles auswählen
QByteArray bValue;
int i = 146915328;
if (bValue.resize(i)== false)
{
QString msg = QString("Memory allocation failed. Tried to allocate %1 bytes.").arg(i);
THROW_EXCEPTION(Exceptions::MemoryException, msg);
}
Für Hilfe bin ich sehr dankbar.
Gruss
Thomas