Results 1 to 7 of 7

Thread: Program crashes on 64-bit systems

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Program crashes on 64-bit systems

    Does it crash even if you step the complete code?

    Just another observation, add a "delete prov", in the for loop;
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  2. #2
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Program crashes on 64-bit systems

    Quote Originally Posted by Santosh Reddy View Post
    Does it crash even if you step the complete code?
    Well it is a complete code, it misses only main.cpp which is generic and stdhdr.h which only has various includes. If by the complete code you mean the main program I'm doing than it crashes in a somewhat different place but with the same syptoms.
    And if by step you mean pressing f10 (sorry, I'm pretty new to programmers' forums) then yes, it does. It gives me munmap_chunk(): invalid pointer error if that helps

    Quote Originally Posted by Santosh Reddy View Post
    "delete prov", in the for loop
    Good idea. It didn't solve the problem but thanks
    Last edited by WereWind; 5th February 2013 at 08:52.

  3. #3
    Join Date
    Mar 2011
    Location
    Hyderabad, India
    Posts
    1,882
    Thanks
    3
    Thanked 452 Times in 435 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows
    Wiki edits
    15

    Default Re: Program crashes on 64-bit systems

    Good idea. It didn't solve the problem but thanks
    It was not to solve the crash problem, It was just to avoid memory leak

    One last thing which I can suggest is, Make sure you Clean All, and Rebuild the code a fresh. (I insist make sure you are using correct file paths to build)
    When you know how to do it then you may do it wrong.
    When you don't know how to do it then it is not that you may do it wrong but you may not do it right.

  4. #4
    Join Date
    Dec 2012
    Posts
    12
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Program crashes on 64-bit systems

    Quote Originally Posted by Santosh Reddy View Post
    One last thing which I can suggest is, Make sure you Clean All, and Rebuild the code a fresh. (I insist make sure you are using correct file paths to build)
    Just did that. still the same crash. Well, thanks for the help anyway.
    PS. If I upload the whole project here, can anybody test it on their own 64-bit system? Maybe it's something on my end after all

Similar Threads

  1. Program crashes on OS X Lion
    By fyodor in forum Newbie
    Replies: 1
    Last Post: 31st October 2011, 06:18
  2. Program crashes
    By Fallen_ in forum Qt Programming
    Replies: 49
    Last Post: 20th September 2010, 01:41
  3. Program crashes while trying to do a check in constructor
    By hakermania in forum Qt Programming
    Replies: 5
    Last Post: 1st September 2010, 10:15
  4. program crashes (QtTestRunner)
    By fmariusd in forum Qt Programming
    Replies: 1
    Last Post: 15th December 2008, 09:27
  5. Program crashes (SIGSEGV)
    By Voldemort in forum Qt Programming
    Replies: 47
    Last Post: 21st May 2007, 20:09

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.