You have 2 bugs in you code.
[1]. Infinite Loop
for(int i=0; i<=list.size(); i++) //this is an infinite loop, and hence the application might be crashing (Exception) after a while
{
list << Address; // This will increase the list size every loop
...
}
for(int i=0; i<=list.size(); i++) //this is an infinite loop, and hence the application might be crashing (Exception) after a while
{
list << Address; // This will increase the list size every loop
...
}
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
Bookmarks