Skip to content

Ultrawingrid Red X Issue.

New Discussion
Deepak Tiwari
Deepak Tiwari asked on Nov 19, 2019 2:06 PM

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.

Sign In to post a reply

Replies

  • 0
    Tihomir Tonev
    Tihomir Tonev answered on Nov 4, 2019 4:31 PM
    Hello Deepak,
    In order to ensure that your issue is addressed correctly, I will need some additional information regarding your scenario.
    Can you please let me know the version of the controls you are running , the IDE, as well as could you please use JIT(Just-in-time) debugging to identify if there is an exception thrown at the time of the red X appearing, so we can have any starting point of identifying the problem.
    Looking forward to your reply.
    Sincerely,
    Tihomir Tonev
    Associate Software Developer
  • 0
    Mike Saltzman
    Mike Saltzman answered on Nov 4, 2019 6:48 PM

    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? 

    • 0
      Deepak Tiwari
      Deepak Tiwari answered on Nov 5, 2019 9:53 AM

      Hello Mike,

      Thanks for your reply .will you explain multiple threads in details.

      • 0
        Mike Saltzman
        Mike Saltzman answered on Nov 5, 2019 3:34 PM

        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. 

      • 0
        Tihomir Tonev
        Tihomir Tonev answered on Nov 5, 2019 4:27 PM
        Hello Deepak,
        If you are looking for detailed information about threading, i can suggest that you use the following topic from MSND as a start – https://docs.microsoft.com/en-us/dotnet/standard/threading/.
        If there is anything else I can help you with, please let me know.
        Sincerely,
        Tihomir Tonev
        Associate Software Developer
      • 0
        Deepak Tiwari
        Deepak Tiwari answered on Nov 11, 2019 8:32 AM

        Hello  ,

        In my case most of the time Red X apprear ater giving message "index out of range" and "Out of memory Exception" . 

      • 0
        Mike Saltzman
        Mike Saltzman answered on Nov 11, 2019 2:08 PM

        An Index Out Of Range exception is consistent with a threading issue. 

        Out of Memory is not as consistent, but it still could be a threading issue.

        Threading issues tend to present themselves arbitrarily at varying locations in the code, and then tend to cause Index Out Of Range exceptions because a collection is out of synch with it's own count when you access it on a separate thread. 

        Have you checked your code to see if you are using multiple threads? 

      • 0
        Deepak Tiwari
        Deepak Tiwari answered on Nov 14, 2019 7:13 AM

        Hello Mike,

        On further dig into this we i found that the red x is occur only for specific window user ,when i log into window with different user and perform same activity  than red x not occurred .please share your view on this.

        Is Red X is releated with window user permission ?

      • 0
        Tihomir Tonev
        Tihomir Tonev answered on Nov 18, 2019 9:56 AM

        Hello Deepak,

        The red X is coming from an exception being thrown during the paint event of the control. Another user without the permissions may not be accessing the part of the code causing the problem, so taking a closer look at the exceptions you have mentioned in your previous post would be right approach.

        Please let me know if you still have any questions. 

      • 0
        Mike Saltzman
        Mike Saltzman answered on Nov 19, 2019 2:06 PM

        I can't immediately think of any reason why a red X would be caused by running the application under a different user. At least nothing that is specific to the WinGrid. It might, of course, be some kind of permissions issue or something that isn't installed correctly. 

        It might help if you could post the call stack of the exception. 

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Deepak Tiwari
Favorites
0
Replies
10
Created On
Nov 19, 2019
Last Post
6 years, 12 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Nov 19, 2019 2:06 PM

Last activity on

Feb 20, 2026 1:09 PM