LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI6 and JPG images

Hi all, in an application of mine I am trying to load a JPG image into a picture control using DisplayImageFile command. The operation succeeds in my development machine while it fails on the customer machine with only the Run-Time installed: it returns error code -17: "PCX image is corrupted or incompatible with current display type."
The application is developed in CVI version 6.0.0.
Now, on my machine I have installed version 7.1.1 too, so the run-time engine is that one (CVI6 application declare it is running with 7.11 engine), while on my customer machine it declares (correctly) that it is using run-time version 6.00 (using GetCVIVersion () / 100.0)
 
Question: is this subject run-time dependent? That is: may I expect that installing the run-time version 7.1.1 even CVI 6 applications can handle JPG images? If not, why my computer displays correctly the image? I don't think the error message about the display type is correct since I can preview this jpg with Windows Picture Viewer.
Both computers are running WinXP with SP2, screen mode is 1024x768 with highest color quality (32bit)
 


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 1 of 2
(2,843 Views)
CVI 6.0 did not support JPEG image format. I think JPEG support was added in 7.1 or so. You could try updating the runtime engine on your user's machine to 7.1.1 and that should probably make it work.
0 Kudos
Message 2 of 2
(2,825 Views)