Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't build a second time
Message
 
 
À
26/01/2005 18:10:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00980994
Message ID:
00981058
Vues:
31
>I have found where the problem is. But, this makes absolutely no sense.
>
>This is the top part of my initialization code:
>
>
...
>* This is a workaround to have the images being cached so the transparency of the GIF files will work
>* on buttons.
>LOCAL loImage,loImage2,loImage3,loImage4,loImage5,loImage6,loImage7
>LOCAL loImage8,loImage9,loImage10,loImage11,loImage12,loImage13,loImage14
>LOCAL loImage15,loImage16,loImage17,loImage18,loImage19,loImage20
>LOCAL loImage21,loImage22,loImage23,loImage24,loImage25
>loImage=CreateObject('Image')
>loImage.Picture='First.gif'
>loImage2=CreateObject('Image')
>loImage2.Picture='Next.gif'
....
>loImage12=CreateObject('Image')
>loImage12.Picture='NextDisable.gif'
>
>
>After this, if I put a return, the application will simply terminate. This is working fine. If the return is there, I can build as many times I wish, run the app and build again.
>
>But, if I add two lines:
>
>
>loImage13=CreateObject('Image')
>loImage13.Picture='PreviousDisable.gif'
>
>
>and have a return after, I will not be able to build another time and the VFP interface will simply freeze. I have to kill the application and start VFP again.
>
>Anyone have any idea about what is going on here?

WAG. Would it work if you load images into the same object?
loImage=CreateObject('Image')
loImage.Picture='First.gif'
loImage.Picture='Next.gif'
....
loImage.Picture='NextDisable.gif'
....
loImage = Null
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform