I have a program made in Visual Basic 6 which does some data logging and display the result on a graph. This program is running on different computer and work quite well, unfortunately I have been reported; on one of the computer the graph is only displayed partially.
I was wondering if any of you have already come across this problem?
I'm not sure where is the problem as the program is the same on the different computer, I was thing maybe an update could cause this or different driver.
So far I tried rebuilding and reinstalling the application without success no change.
I tried replacing the computer but kept the same hard drive, same thing again.
Now I'm going to reinstall everything, windows ...
If any of you have any idea about what could cause this problem I would be glad to hear it.
I attached a screenshot of the display, we can see the graph stop drawing after 10, but is variable sometime it will be between 8-10 and continue.
As I was able to take the screenshot, I assumed it ain't hardware.
I forgot to say the problem is intermittent, I'v only seen it once, but seems to appear quite often.
Unfortunately, the code is not mine, I'm just getting through the code for some modification and trying to understand this glitch.
Here is a small snip of the code:
Dim oysc As Double
ymax(1) = 9 * ysr: ymax(2) = 3.6: ymax(3) = 18 * ysc
For testno = 0 To 14
If LoadTest.Check3D1(testno).Value And rbPlot(Int(testno / 3)) Then
If testno = 0 And pbCLZ Then
oysc = ysc
testno = 15
If LoadTest.Check3D1(testno).Value Then
Well, this code does not say much.
Maybe the problem is in the scling. So the procedure set_scaling could be of interest.
Has it probably to do with the screen resolutiion?
Compare screen resolutions on machines where display is ok with machines where it isn't.
One thing that comes to mind is that in case the graph is drawn on a picturebox control, you should set the "autoredraw" setting to "true" for that box, and after the graph has been drawn you should call picbox.refresh (replace with the name for the control).
I hope this helps.
There could also be a problem with the math of the scaling function.