Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PNG Files Locked in Image Control
Message
From
27/09/2005 08:27:36
 
 
To
27/09/2005 07:52:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Oracle
Miscellaneous
Thread ID:
01051876
Message ID:
01053380
Views:
6
>Hi,
>Nope that doesnt work:
>
>_screen.AddObject( "oimg", "image" )
>_screen.oimg.Picture='C:\IMAGES\PNG\ia3002_1.png'
>_screen.oimg.Visible = .t.
>RELEASE FILE 'C:\IMAGES\PNG\ia3002_1.png'
>DELETE FILE 'C:\IMAGES\PNG\ia3002_1.png'
>
>(last line gives "file is in use")
>
>
>Tim


Sorry a my error.
RELEASE ALL
CLEAR ALL
#DEFINE PNGFILE  'C:\PROGRAMMI\MOVIE MAKER\SHARED\Copia di news.png'
_screen.AddObject( "oimg", "image" )
_screen.oimg.Picture=PNGFILE  
_screen.oimg.Visible = .t.
CLEAR RESOURCES PNGFILE  && oimg lock the handle
DELETE FILE PNGFILE && "FILE IN USE"
_screen.RemoveObject( "oimg")
CLEAR RESOURCES PNGFILE  
DELETE FILE PNGFILE && "THIS WORK"
Previous
Reply
Map
View

Click here to load this message in the networking platform