Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP8 bug with transparent GIF images
Message
 
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00800161
Message ID:
00800165
Views:
19
Mark,

Can you issue a CLEAR RESOURCES before trying the copy operation? VFP is pretty tenacious about holding hard read locks on files when it opens them.

>Put any transparent GIF into a picture object on a form in your VFP app. Then try to use the COPY FILE command on the GIF file. VFP denies access and reports the file as being in use. This only seems to happen with transparent GIF images. It's a REAL PAIN when you want to give somebody the option to make a copy of an image they are looking at. I converted the COPY FILE command to a Windows API call. Same thing with VFP's RENAME command in this situation. Things work fine when using corresponding WinAPI calls directly. In other words, VFP apparently only flags the file as "in use" within its own data structures. Any other Windows app can still read the file in the circumstances I describe above.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform