My VB6 app gives run-time error '6' overflow. It is simply passing results of several file searches to a listbox. It only crashes when hundreds of lines have been written to the listbox, performing fine if there are are not that many. Is there a limit to how many lines a listbox can handle?

How can I trap this error and see what is causing it?