I'm using a background worker in order to get data from a database. My problem is that I'm struggling to report any errors in the database activity.
I've tried straight up spawning a Dialog (Windows Form that I've created) from the DatabaseUpdater class. However, this hangs and I'm left with a white box instead of the error message. I've tried spawning the Dialog in a separate thread - this results in the Dialog appearing and disappearing almost instantly. Obviously I wasn't entirely surprised by this, but attempts at maintaining the Dialog resulted in the same white box effect.
I guess my question is really what is the best practice for displaying errors coming from threaded activity?