02-15-2012 12:45 PM
I am modifying my charts to increase flexibility and I'm having an issue that I've only seen once before and this issue was always on the first of several graphs to be written to and used to only happened on one system. Now, on my development PC I am getting the same issue. As soon as a write a value to the chart it turns to a big red X. What is odd is that all other charts which are written to in the same loop operate just fine (charts 1-9).
Any ideas?
Dim ChartPrefix As String Dim A As Int16 For cnt = 0 To 9 ReDim ChartData(Charts(cnt).NumPlots, 0) For cnt2 = 0 To Charts(cnt).ChartChannels.Length - 1 If Charts(cnt).ChartChannels(cnt2) <> "" Then ChartPrefix = Charts(cnt).ChartChannels(cnt2).Substring(0, 3) Select Case ChartPrefix Case "AI:" For A = 0 To AIChannelCount - 1 'MsgBox(Charts(cnt).ChartChannels(cnt2).Remove(0, 3)) If AIChannels(A).Name = Charts(cnt).ChartChannels(cnt2).Remove(0, 3) Then ChartData(cnt2, 0) = aiEngrUnits(A) Exit For End If Next End Select End If Next frmD.WaveformGraph(cnt).PlotYAppendMultiple(ChartData) Next
02-16-2012 04:35 PM
Hello there, This is definitly odd behavior, I will be looking into the possible cause. If possible would you send me the files to save on time?
02-16-2012 04:37 PM
What files do you need? The entire solution is faily large with many required input files.
02-17-2012 11:14 AM
Anything that would reproduce the current error with the large Red Box.
02-17-2012 12:13 PM
The times I have seen this in the past, it was related to an out of memory exception. What are the memory conditions like on your system?
02-17-2012 02:29 PM
Resources are fine. Memory is around 50% max. What makes it even more interesting is that it is selective. It used to only happen on a laptop I have. This was the first time I saw it on my development computer. Now it has gone away again! Going to be a difficult one.
02-17-2012 02:46 PM
Are you using any special values? Such as negative infinity, positive infinity or NaN? There are not any known issues with this currently, but they have been the source of similar bugs in the past.
02-17-2012 05:26 PM
No. Outputing ~4000 and ~1000.
02-20-2012 03:45 PM
I got it to throw me an error on now a third computer. Again it is the first chart that messes up. All of the rest are OK.
02-20-2012 04:03 PM
I would still be interested in seeing the code that you are using which is creating this error.