Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XFRX. Problem with using it in .APP
Message
 
General information
Forum:
Visual FoxPro
Category:
Third party products
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01319845
Message ID:
01319849
Views:
26
This message has been marked as a message which has helped to the initial question of the thread.
It's VFP caching in action. If you issue loSession = XFRX("XFRX#INIT") in EXE first, VFP caches xfrx.fxp from EXE, otherwise it caches xfrx.fxp from APP. Any program (fxp) can only see reports from EXE/APP it's built into. I don't think there's a simple salutation to this problem.

>
>I have come across the following problem:
>
>The .EXE application calls an .APP project. The .APP project is using XFRX to convert a report to a PDF file. So far, it works.
>
>But after calling .APP, the EXE application that is also using XFRX always display a message the .FRX file not found.
>
>I have traced the problem to the line
>
>
>loSession = XFRX("XFRX#INIT")
>
>
>in the .APP application. That is, after this line, the EXE application XFRX cannot find .FRX file.
>
>The .APP application is converting .FRX residing on the disk and the EXE is converting .FRX in the .EXE file. Could this be the problem?
>
>How can I reset the XFRX to look for .FRX file in the .EXE instead of on the driver?
>
>Thank you in advance for any suggestions.
>
>UPDATE: I found out that a way to make the program work is to call XFRX in .EXE first. Then, if I call XFRX in the .APP and then back in the .EXE, everything works. So it seems like XFRX is initialized or does something first time (even though I use all local variables) that stays in the memory. Unless I am confusing something.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform