Every now and then and with no repeatable pattern, I get a red X in my application.
I develop an application with infragistic control .i build my application on 32 bit and my customer is upgraded to 64 bit operation system.
Is this the case i get out of memory exception and Red X occur.Please share view on this.
The big red X means that an exception was raised during the OnPaint of the grid. The most common cause of this kind of issue is that your application is using multiple threads incorrectly and so the grid ends up getting out of synch with it's own internal data or the data source it's bound to and this causes a crash. Is your application using a background thread?
Hello Mike,
Thanks for your reply .will you explain multiple threads in details.
Hi Deepak,
I can't really provide you with comprehensive documentation on threading. Threading is a general programming concept. Some applications create a separate thread and do work on that thread so as not to tie up the UI thread when long, complex, operations need to happen. If you are not familiar with threading at all, I recommend checking out Microsoft's documentation on support for background worker threads in DotNet.
If you are not sure if you are using a background thread, you could probably just search your source code for the word "Thread" and see if it finds anything. There's a forum post here, in which I discuss the issue of threading with another WinGrid customer and I explain in some detail why you cannot use multiple threads safely with the WinGrid - or really any bound control in DotNet.