Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
AccessViolationException
posted
In my application i use ultrawingrid control,  referencing information from a DataTable. In a few computers, I see this error:
 
 System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
   at System.Drawing.SafeNativeMethods.Gdip.GdipDrawLineI(HandleRef graphics, HandleRef pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
   at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
   at Infragistics.Win.DrawUtility.DrawBordersHelper(Graphics gr, Border3DSide sides, Pen leftTopPen, Pen rightBottomPen, Rectangle rect, Rectangle invalidRect, Boolean isDashedPen).......
 
Looking at this forum I have read that this problem is solved in the new versions, I use the netadvantage 5.2, this version is resolved? or is another type of error?

Thank you

Sorry my bad English

 

Parents
No Data
Reply
  • 37774
    posted

     It's not really possible to say if this issue has been addressed or not in a later version/hotfix, since I can't really tell the cause.  You could submit a sample to Developer Support that reproduces the problem to see if a later version fixes it, but another possibility is that you are working with a multi-threaded application and you are doing something in a worker thread that is causing the UI to get updated in an invalid state.  If this is the case, you need to make sure that you marshal any calls that could affect the UI (including updating the data source of a grid) back to the main UI thread.

    -Matt

Children
No Data