Code working for 20+ years, suddenly produces a blank .bmp file. the code:
SavePicture ZigZagPic.Image, APPDirectory + "45-3-Z.bmp"
an image is there; i can see it. APPPDirectory is valid. picturebox ZigZagPic.scalemode = vbpixels, autoredraw = true
5000+ users are depending on this continuing to work.
What I have tried:
i've searched and found only 1 relevant posting. unfortunately, there was no detail.
i have 2 complete source copies. one for production and one for work in progress. both went awol at the same time. Both copies active but with unrelated activities.
tried re-installing VB6; no change.
tried refreshing before savepicture; no change.
permissions not an issue as blank file is created in the right place.
another test. back in the original code just after the first form (with picturebox) is displayed. different source but with the same properties. Proper .bmp is created. Now, what can disable savepicture?
More test results. I have 5 instances of saving a picturebox image. All the images are created and saved in the same way. 3 of them work. 2 fail. I've checked all their picturebox properties and the only differences are name and size.