Results 1 to 2 of 2

Thread: QtConcurrent std::bad_alloc

  1. #1
    Join Date
    Aug 2007
    Posts
    275
    Thanks
    28
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default QtConcurrent std::bad_alloc

    Hi all,

    My app is using Qtconcurrent and was very happy until i switched machine. My app has been running on Quad core machine windows 7 64 bit , but my app is a mingw 32 bit compiled, without a problem. Then this new machine came in with hyperthreaded quad core stuff ( OS sees 8 cores) it starts crashing. It crashes when i do QtConcurrent , but when i switch to just 1 thread it runs fine.

    Further investigation shows that, the exception thrown is std::bad_alloc. I ran this app in my old machine which has 4Giga bytes of memory without a problem. Now my new machine with 16Gig of memory is telling throwing some std::bad_alloc? its just won't add up. Any suggestion and comments will be highly appreciated.

    baray98

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QtConcurrent std::bad_alloc

    I suggest you fix your code
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. QtConcurrent::mappedReduced
    By wookoon in forum Qt Programming
    Replies: 1
    Last Post: 8th November 2010, 08:53
  2. QtConcurrent::run() and exit()
    By pmitas in forum Newbie
    Replies: 8
    Last Post: 24th September 2010, 10:12
  3. QFile::open throws std::bad_alloc for no obvious reason
    By nateriver in forum Qt Programming
    Replies: 3
    Last Post: 29th December 2009, 06:10
  4. qtconcurrent
    By knishaq in forum Qt Programming
    Replies: 4
    Last Post: 15th December 2009, 08:41
  5. QtConcurrent
    By Brandybuck in forum An Introduction to QThreads
    Replies: 2
    Last Post: 9th May 2008, 14:10

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.