Original Post
When I try to draw a number of polylines (up to 5000) with Line.DrawTransform, I get two bugs: If I recreate the list of Vector3 arrays with a different array size and then render it again, I get "extra lines" from the first to the last position and after a short while I get an AccessViolationException: attempted to read or write protected memory (and everything crashes). I think this might actually be a "real" bug (something wrong with directX rather than my code), but I'm not sure. Is there any workararound for this? To draw interrupted polylines (lines that have a gap between one or more positions) went perfectly well when I used Draw instead of DrawTransform. A gap was formed when I had a float.NaN at a position. When I use DrawTransform I get extra lines (again) that go straight up (towards infinity?). Can anyone help? Code: _line.DrawTransform(_lineList, _transformLinesMatrix, Color.FromArgb(_lineTransparency, colors)); where _lineList is a Vector3[] and all Vector3[] in the list have the same array size. Visual C# 2005 Express, DirectX SDK (Augusti 2006) (If my explanation isn't good enough, please tell me and I will try to explain better.) [Edited by - Merry on January 10, 2007 4:08:41 AM]