[Qt-interest] Error while running an application
Syam Krishnan
syamcr at gmail.com
Sun Jan 18 05:05:24 CET 2009
Michael Plucik wrote:
> terminate called after throwing an instance of 'std::bad_alloc'
> what(): std::bad_alloc
> Aborted
>
Check your dynamic memory allocations using operator new. When 'new'
fails, it throws an exception fo type std::bad_alloc.
So, go through all your 'new' statements (must be some array) and look
for possibly invalid arguments (huge numbers, negative numbers etc.)
Syam
More information about the Qt-interest-old
mailing list