Results 1 to 19 of 19

Thread: Program not running exited with code 0

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,329
    Thanks
    317
    Thanked 871 Times in 858 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Program not running exited with code 0

    Why on earth are you doing all this casting of your Short * object to Short * and baseFillChoose * all over the place? Do you not understand how inheritance works in C++? You created a Short * instance. Just use it without all the casting. It makes your code almost incomprehensible.

    And the long strings of method().method().method().method()... calls are guaranteed to cause you a big headache if one of those calls in the middle returns something unexpected and the rest of the calls fall apart as a result. Look at how long it took you to find the problem in your original post.

    Please, do not work on any defence-related projects until you get a better understanding of C++. The world will be a safer place.

  2. The following user says thank you to d_stranz for this useful post:

    gayathrisekaran (26th November 2012)

  3. #2
    Join Date
    Nov 2012
    Posts
    12
    Thanks
    7
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Default Re: Program not running exited with code 0

    No d_stranz, i haven't did the code. Before 7years someone did this code in qt3. Now i was supposed to do the same in qt4. For the past 2months i was trying to solve the problem. If i did it means surely i wont write this much complicated code as a beginner. Anyway i wont write such a complicated code until i completely understand and wellversed in c++. Thank you d_stranz.

Similar Threads

  1. exited with code -1073741819
    By cic in forum Qt Programming
    Replies: 4
    Last Post: 11th November 2011, 23:39
  2. Running example project with mingw gives "... exited with code -1073741792" error
    By sibercekirge in forum Installation and Deployment
    Replies: 8
    Last Post: 31st May 2011, 17:33
  3. Program exited with code 03
    By Fallen_ in forum Qt Programming
    Replies: 1
    Last Post: 9th October 2010, 23:09
  4. name.exe exited with code 1.
    By Fallen_ in forum Qt Programming
    Replies: 2
    Last Post: 2nd September 2010, 01:17
  5. Replies: 8
    Last Post: 28th January 2010, 06:45

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.