Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
JPG display issue in VFP 8 & XP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Title:
JPG display issue in VFP 8 & XP
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01021652
Message ID:
01021652
Views:
81
I have a form that displays a JPG off of disk by using a standard image control. Recently I've had some reports from users complaining about files that don't display on some systems. The first thing I did was to check in my app on the development system that is maintained on site for my use. The pictures showed up fine. (This system runs W2K.) I then remoted into one user's desktop and the same files did not display. That system is running XP SP1. I grabbed a bunch of those files and pulled them onto my dev system (which runs XP SP2). After attaching them to my inventory in my test setup, I verified that they do not display. So far, I've been able to identify 2 criteria: the systems that do not display the images are running XP and all the JPGs that would not display properly came from one particular camera (Nikon 4300). Then I created a quick test form with a single image control and tried to hardcode the picture property to one of these JPGs. VFP threw up a window saying the image was "too big, corrupt or wrong format". However these files do display properly in Explorer windows and in IE. Since VFP 8 and later is supposed to depend on Windows to handle image files (via gdiplus), why don't these images display properly in an image control but do show up fine in thumbnail or tile view in Explorer? Based on this, I'm guessing that VFP's implementation of gdiplus functions is a bit off. Having said that, it only seems to be a problem on XP systems.


So what I'm left with here is a situation where these files will display in older versions of Windows. Has anybody had an experience with this problem and did you find a solution? If anybody wants a sample, I can send you one of these JPGs and my little testform.

TIA
Next
Reply
Map
View

Click here to load this message in the networking platform