Hi,
I have been using the UltraWinGrid for some time now. But sometimes (once in a blue moon night types) i get this giant red cross across the screen (read WinGrid) and the whole screen get painted white (background) with this giant red cross across the grid. I am not sure what is causing this. We have used Invoke and threading generously. Please advice what could possibly cuse such a behaviour.
Cheers,
SK
Hi SK,
You should read this post.
Hi Mike,
I have removed all threading and Invoke calls. Still this issue was reported from production. What i am confused still is what exactly is causing the red cross. if there is some exception it should be caught as all the cod ein with in Try Catch. But the application will just crash after appearence of the red cross. I am not sure how to proceed on this. What type of code can cause this?
Shadab Kalim
The red cross implies that the exception happened in the OnPaint method, i.e., while the control was being drawn. You might want to try setting the debugger to throw all exceptions.
Assuming you mean under a Release configuration, you would have to do something like recode the application to catch all exceptions of that type and display them in MessageBox. The static Program class's Main method is one place you could do this (wrap the call to Application.Run in a try/catch)
The trouble is it is comming only in production box. I am unable to get this in my Dev env. How can i get the exception details from the production box?