Results 1 to 3 of 3

Thread: Unhandle Exception

Threaded View

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

    Default Re: Unhandle Exception

    You have 2 bugs in you code.

    [1]. Infinite Loop
    Qt Code:
    1. for(int i=0; i<=list.size(); i++) //this is an infinite loop, and hence the application might be crashing (Exception) after a while
    2. {
    3. list << Address; // This will increase the list size every loop
    4. ...
    5. }
    To copy to clipboard, switch view to plain text mode 

    [2]. Loop exit condition should be i < list.size() (not i <= list.size()), as the index starts from 0
    Last edited by Santosh Reddy; 9th June 2011 at 23:24. Reason: updated contents

Similar Threads

  1. Unhandled Exception from DLL QT 4.6.0
    By qlarity_three in forum Newbie
    Replies: 2
    Last Post: 5th February 2010, 19:11
  2. Qt and exception support....
    By sergey_85 in forum Qt Programming
    Replies: 1
    Last Post: 28th November 2009, 12:17
  3. Exception not controlled
    By ^NyAw^ in forum Qt Programming
    Replies: 4
    Last Post: 5th October 2009, 16:43
  4. handle exception in Qt
    By Qt Coder in forum Qt Programming
    Replies: 4
    Last Post: 6th April 2009, 06:05
  5. exception
    By AnithaRagupathy in forum Qt Programming
    Replies: 1
    Last Post: 14th November 2007, 09:59

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.