The UI Thread
Dear Developers,
The UI thread is not the appropriate place to be running long-running tasks. Setting the cursor to the "wait" cursor doesn't make running something in the UI thread OK - it just means that the cursor will let you know that the application is supposed to be completely unresponsive.
Don't forget, if you run a long-running task in the UI thread, Windows will think your application is "Not Responding."