Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to track or prevent file search
Message
De
01/06/2012 02:05:05
 
 
À
31/05/2012 09:11:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01544907
Message ID:
01545022
Vues:
53
>>>I dont have that experience, if (by mistake) an image is assigned which is not in the search-path VFP will not hang, it will simply >>show no image, a cross, and will go on.
>>>I believe there must be an other reason the application hangs, could you specify the code when this is happening.
>
>It's difficult to reproduce, on a simple form it seems too quick to measure a difference, but I have seen it on a couple of installs and I experienced it today, I am create a "lite" version of one of our apps so copied all the files I though I needed to a new folder tree. I could'nt work out why the "lite" version was slower that the full fat, then I realised I had missed a couple of graphics off the transfer, I copied them and it ran fine.
>
>Just tried to recreate with a simple form but it did not happen, maybe it related to how I use the graphics or the quantity. Sergey has confirmed VFP WOULD search through the SET PATH for the missing file.
>
>Gary.

> I have noticed a few times now (enough to think I see a pattern) that VFP9 can appear to "hang" if a graphic is missing.

Hi,

Yes you are correct VFP will search the assigned Set('Path') for files, images a.s.o.
However if you have an image in your application which is not in your path, it is my experience VFP will not halt, as you reported, but simply not show the file thus showing you a cross over the object. - see screenshot attached.
So in case your applicaction hangs I suspect an other reason.

The situation you explain in this answer -new application working slower than old same application due to files are missing - can easily be avoided/checked by recompiling your project before you run. VFP will pull any file needed for the project, if not yet assigned to the project to make it run and in case it cant find any files since they are not in your path it will error and prompt for the file.

Regards,

Koen
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform