Errors reading bitmap files in VB5

Hi,

I have an application which monitors a video signal through a WinTV capture card, capturing a single frame then analysing the contents.  This is working fine on 2 machines here but it has now been deployed abroad and there is some strange behaviour occurring.

Randomly in the middle of the image the RGB pixel data seems to get out of step, see below:

Start of the file (fine)
 15 , 19 , 24
 23 , 24 , 16
 22 , 15 , 22
 18 , 21 , 21
 18 , 25 , 18
 25 , 17 , 21

Middle of the file (values shifting one place each time)
 28 , 255 , 43
 255 , 38 , 44
 32 , 38 , 255
 38 , 255 , 47
 255 , 38 , 55
 26 , 49 , 255
 56 , 255 , 28

The image looks fine visually so can't work out whats going on.  My read code is as follows:

    WinTV.SaveToDiskEx ("c:\capture.bmp")
       
    Open "c:\capture.bmp" For Binary As #14
    Lock #14
    Get #14, , fileheader
    Get #14, , imageheader
    ReDim bimage(imageheader.width - 1, imageheader.height - 1)
    Get #14, , bimage
    Unlock #14
    Close #14

where bimage is an array of type pixel which has individual bytes for b, g and r fields.

Could this be a memory or cache issue?  Both machines are running a similar spec (Win XP, 512MB ram etc).

Any ideas would be great.
fvcctvAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

 
fvcctvAuthor Commented:
Turns out the driver for the WinTV card was corrupt or incorrect on the deployed machine.  Reloaded with the same version I am using here and all sprung into life...
0

Experts Exchange Solution brought to you by ConnectWise

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.