[Qt-interest] multidimensional array
Jason H
scorp1us at yahoo.com
Mon Aug 1 04:32:24 CEST 2011
Yeah, its a static allocation
Use new and delete or malloc and free to get it from the heap.
________________________________
From: Bob Hood <bhood2 at comcast.net>
To: qt-interest at qt.nokia.com
Sent: Sunday, July 31, 2011 10:09 PM
Subject: Re: [Qt-interest] multidimensional array
On 7/31/2011 6:51 PM, pengliang(彭亮) wrote:
>Hi all
> Please see the snippets bellow. When I ran this program, it failed.
>
>
>
>
You're allocating a 2.5MB array on a local stack. I doubt it has
enough room for that (you're probably getting a stack overflow and
a crash, yes?).
Render me gone, |||
Bob ^(===)^
---------------------------------oOO--(_)--OOo--------------------------------- We can't all be architects. Some of us excel at building from the blueprints.
_______________________________________________
Qt-interest mailing list
Qt-interest at qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-interest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110731/6d485f6d/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 5208 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110731/6d485f6d/attachment.png
More information about the Qt-interest-old
mailing list