|I have created a program that schedules items. About every 2 seconds it updates the form by getting new data from the MSSQL server. After the application gets through about 700 updates the background worker stops running the loop and just gets stuck. It does not throw up an error but the part of the form that gets updated turns white. I have put everything in my background worker in a try catch statement but that does not get raised when it stops. Any suggestions? |
EDIT: If stop the background worker every 500 or so updates and then start it again I do not get that error. Inside of the background worker I have it running multiple SQL queries which all of them are getting disposed properly. It also creates components and adds them to the form if needed
Note: The last thing to show in my Immediate Window is
"A first chance exception of type 'System.ComponentModel.Win32Exception' occurred in System.Windows.Forms.dll"
message edited by rocky3598