Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
YAM2 on App Getting the EXE file
Message
From
07/05/2021 13:39:55
 
 
To
07/05/2021 11:58:29
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01680124
Message ID:
01680207
Views:
20
>>>
>>>Today I saw another error in the error log. The error says:
>>>
>>>Cannot read file c:\users\dmitry\appdata\local\temp\password.fxp
>>>
>>>
>>>Note that the error points to the location on my PC (my development PC). The end user does not have the c:\users\dmitry....
>>>
>>>How could it be that at run time his application attempts to read a prg/fxp file from location on my PC (that is, in location that does not exist in his environment)?
>>>
>>
>>Regarding the above problem where the application is looking for the FXP in a folder that only exists on my PC.
>>Note that the end-user gets this error. And I can't think how the application would know MY local drive name.
>>Question:
>>Does VFP 9 - when you compile and build the EXE - stores MY local folder name anywhere in the EXE?
>>
>>TIA
>
>If I'm not mistaken the full path to the original PRG is contained within the FXP file (the structure of which is probably similar to that of an .OBJ file -- some sort of "header", followed by different "code" and "data" sections, with some of the "data" sections containing information of the original source files). An APP is (from what I gather is simply a "library" of FXP files -- which has its own "header" and "contents" section). An EXE (and by extension a DLL) file is simply like an APP file but with an EXE "wrapper".
>I do remember back in the FoxPro DOS and FoxPro Windows days one annoyance that occurred was if your source directories weren't on your C: drive. In particular this could be situation where you partitioned your harddisk to have C: dedicated system and applications, while having separate parittion to keep your data. Often this meant your data partition ended up as D: drive. Where this became problematic was when a customer didn't have this configuration and the D: drive was the optical drive (i.e. CD-ROM or DVD-ROM), and they'd have to insert a disc in it for your program to operate properly. Unfortunately it wasn't entirely clear when this internal directory information was being used -- sometimes the problem would occur, and sometimes not. I do remember after moving from FoxPro DOS/Windows to Visual FoxPro the problem largely didn't happen (save for the times when errors would occur and the original source folders would be displayed).

Thank you for your input. I wish there was a way to recompile the PRG file into an FXP such that none of the local path is saved. And only the content of the PRG is compiled.
I think - I am guessing - that FOXUSER.DBF has something to do with the what is saved in the FXP file.
I wonder if I delete the FOXUSER.??? before building the application, none of the file PATH is saved in the EXE.
If someone knows, please let me know.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform