Hi,
I have a application that ataches to an Excel file (using jet 4) and fills a dataset in a background thread. This background thread uses calls a specific dll to handle the connection to the Excel file.
If the user clicks 'Cancel' from the main form then the main thread calls thread.abort followed by thread.join. However, just after thread.abort is called a messagebox pops up saying "Error 2" - no other text or title is displayed in the messagebox.
I have no idea what is causing this error - i have tried catching the threadabortexception but the messagebox pops up before this exception is caught.
I am really stumped by this...any help would be really appreciated.