Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
|
That is a very, very odd error. For some reason, it seems that the SQL query is pushing a WM_PAINT message up the WndProc call sequence on a background thread. The WaitOne means that the SQL Server client is pausing the main thread while the background thread does the processing, but I have no idea why it's trying to paint during that. We can put a try/catch in the OnPaint to prevent an exception from being thrown, but other than that, all I know to do is check the thread context to make sure it's on the main thread before painting.
|