Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class in PRG vs class in VCX
Message
From
17/05/2021 22:56:44
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01680487
Message ID:
01680527
Views:
39
>>>>The specific error message that keeps coming up at the very beginning of the application, before it is even loaded. That is, when a user enters his/her password and the >>code calls the application object method Start().
>>
>>Error reading file c:\users\dmitry\appdata\local\temp\password.fxp
>>
>>
>>Dmitry, on further reflection: IME VFP usually unpacks the exe into memory so it can run. Therefore if the fxp is in the exe, I am not convinced that your app is trying to read just this fxp from the exe on disk.
>>
>>Perhaps there is more than one copy of password.prg? Is there a copy in user dmitry's temp folder? If you USE your pjx file and find the row for password.prg, what is its path?
>>
>>Less likely... but is your exe huge? If so, is the virus scanner locking and preventing read of the next file that happens to be password.fxp, and/or what are your foreground/background memory settings?
>
>I checked: there is only one copy of the password.fxp and it is the compiled version of the source in my \Programs\ folder.
>
>What I think happens is as follows:
>at the top of the application (in main.prg) there is a code
>
>set procedure to password additive
>
>
>Then something (maybe CLEAR EVENTS ??) closes all procedures. So the SET PROCEDURE TO PASSWORD is not longer part of the current code. And the application needs to call some method in this .PRG (the file password.prg Defines a class with properties and methods). So, when the application - after the procedure PASSWORD is closed - calls one of the methods, it bombs with the above error code.

If I remember correctly, CLEAR EVENTS shouldn't close program files. On the other hand if you've execute CLEAR PROGRAM or CLEAR ALL you could get errors if you've got an active SET PROCEDURE.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform