Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. How to know if the image is valid

How to know if the image is valid

Scheduled Pinned Locked Moved Visual Basic
helptutorialcareer
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mysterious3rd
    wrote on last edited by
    #1

    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.

    M 1 Reply Last reply
    0
    • M mysterious3rd

      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.

      M Offline
      M Offline
      mikanu
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups