Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IPicture freezes
Message
De
18/01/2015 19:53:09
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
18/01/2015 13:01:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Photos et traitement d'images
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01613819
Message ID:
01613837
Vues:
36
>>Is there any function to call to garbagecollect this, or a way to flush the buffers and whatever iPicture uses? Or should I be better off using plain fox-native image objects?
>
>You could try CLEAR RESOURCES. I don't know if VFPX LOADPICTURE() will respond to that, though.

It seems the combination of loadpicture() inside getInterface() and/or returning an iPicture object from a function was the cause.

Now I've put a simple image object on the form(s), and filling it with an object I got from loadpicture() (still need to check if it's null, sometimes it is)...
loPic=LoadPicture(lcFullp)
lofrm.img.pictureval=lopic
...and there seems to be no leak. I'm still creating an iPicture object inside the routine which gets/saves the dimensions of the picture, but it seems to do no harm as long as it isn't passed into or from a method. I wonder what would happen if I set it as a property of some global object...

Well, never mind.

And, ah, the loFrm.img.picture=lcFullp still works, but... in many cases I'm getting fewer bitplanes - the rendering of the image is rather ugly and looks like it's reverting to 16 or 64 or 256 colors. So loadpicture()... which works.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform