According to Calvin
http://blogs.msdn.com/calvin_hsia/archive/2005/07/14/438903.aspx CLEAR RESOURCES... should take care of it.
>Yeah, I tried to CLEAR RESOURCES... already, but, still got the error.
>I am on VFP9 SP1.
>
>BTW, when I created this message the first time, I'm sure that I specified that I was on VFP9 SP1 WinXP Pro. I can't see that information now. Where should I be looking?
>
>Thanks,
>Mike
>
>>Try
...
>>CLEAR RESOURCES "C:\Transparent.gif"
>>ERASE "C:\Transparent.gif"
>>
Did you install SP1?
>>
>>>I'm having a problem deleteing a GIF that has transparency in it. The repo code is as follows:
>>>
>>>
>>>_screen.AddObject("imgGIF", "image")
>>>_screen.imgGif.picture = "C:\Transparent.gif"
>>>ERASE "C:\Transparent.gif"
>>>
>>>
>>>If you select a GIF that has
transparent regions in it, the ERASE command will fail with a "file is in use" error. If the GIF does
not have transparent regions in it, all is fine.
>>>
>>>This code used to work in VFP6 regardless of the GIF. I know VFP 9 now uses GDI+. Is this problem related to GDI+? If so, are there any workarounds or solutions?
>>>
>>>TIA
>>>Mike
--sb--