How to know if the image is valid
-
Hello everybody I'm workin' on a project in which i have to load an image in an image box every period of time so i'm using a timer to do that, this image comes from another PC using the MScomm. The problem is that if the image didn't comletely and correctly arrive the computer stuck, even if i put "on error resume next" at the top of the timer. So is there any way i can check if the image is valid before loading it in the image box. I appreciate your cooperation and thank you very much.
-
Hello everybody I'm workin' on a project in which i have to load an image in an image box every period of time so i'm using a timer to do that, this image comes from another PC using the MScomm. The problem is that if the image didn't comletely and correctly arrive the computer stuck, even if i put "on error resume next" at the top of the timer. So is there any way i can check if the image is valid before loading it in the image box. I appreciate your cooperation and thank you very much.
What kind of image are you using (what format). Also, did you write the other application that sits on the other computer and sends the images over MSComm?! If so, I would add a checksum to every transmission and check that first, before displaying the image. This would tell you if something got corrupted on the way.. ---- www.digitalGetto.com