I would like a message box to be displayed and the program to just continue and not wait for me to click ok on this message box. Can it be done ?
else
{
// Debug or messagebox the line that fails
MessageBox.Show("Cols:" + _columns.Length.ToString() + " Line: " + lines[i]);
}
First, the correct solution would be to replace the messagebox with a plain window (or form, if you are using winforms). That would be quite simple. Example (WPF)
If you want a quick-and-dirty solution, you can just call the messagebox from a throwaway thread:
(not sure if
ApartmentState.STAis actually needed)