Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Class in PRG vs class in VCX
Message
 
 
To
17/05/2021 15:54:44
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01680487
Message ID:
01680522
Views:
40
>>>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.
"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