Discussion Board

Results 1 to 11 of 11
  1. #1
    Registered User NMMA's Avatar
    Join Date
    Apr 2010
    Posts
    62
    I use Qt 4.6.2 on fedora "linux"

    when I tried to run or debug my program Qt creator close at specific point.

    this section of code make long while loop and use huge memory allocated.

    I do many calculation before this section and also many while loop

    Is there problem in Qt?

  2. #2
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Did you try to run application from command line? Do you observe the same?

  3. #3
    Registered User NMMA's Avatar
    Join Date
    Apr 2010
    Posts
    62
    How to run it from command line?

  4. #4
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Code:
    ./binary_name

  5. #5
    Registered User NMMA's Avatar
    Join Date
    Apr 2010
    Posts
    62
    I run it from commandline and it show me message "process killed"

  6. #6
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by NMMA View Post
    I run it from commandline and it show me message "process killed"
    So could we conclude that the problem is not related to Qt Creator?

  7. #7
    Registered User NMMA's Avatar
    Join Date
    Apr 2010
    Posts
    62
    ok..thanx for ur reply

    can you suggest any profiler to discover what happen at this point?

    when i run system monitor it shows huge memory consumption

    I test this application on windows and it works very well.

  8. #8
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    You can use Valgrind's memcheck tool, for example. It also has GUI front-ends http://valgrind.org/downloads/guis.html

  9. #9
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Check the logs carefully for "Assertion failure".

    If that doesn't help then you do it the old fashioned way -- divide and conquer with print statements.

  10. #10
    Nokia Developer Champion danhicksbyron's Avatar
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209
    Or, under the Qt Creator debugger put a stop on method "qFatal".

  11. #11
    Nokia Developer Moderator divanov's Avatar
    Join Date
    Oct 2009
    Posts
    4,326
    Quote Originally Posted by danhicksbyron View Post
    Check the logs carefully for "Assertion failure".

    If that doesn't help then you do it the old fashioned way -- divide and conquer with print statements.
    If it says process was killed, then it was killed by oom killer because using way too much memory.

Similar Threads

  1. Problem with running application in S60_3rd_FP1
    By joy.mca in forum Symbian C++
    Replies: 5
    Last Post: 2010-01-28, 15:01
  2. Changin UID3 value STOPS the application from running.
    By MehulPatel in forum Symbian C++
    Replies: 11
    Last Post: 2008-10-16, 06:33
  3. 为什么会启动这么多的线程
    By shaojieli in forum Symbian
    Replies: 1
    Last Post: 2008-08-19, 05:34
  4. What is application running in background?
    By newnb in forum Symbian C++
    Replies: 3
    Last Post: 2007-01-08, 03:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved