sl080570


To anyone that can help....

I have a compiled exe that is making a call to the development path for forms when they are invoked. The forms are included in the EXE and not explicitly excluded in the Project Manager.

Within our LAN we have no noticed this because Windows permsisions prevent access quickly but we noticed a delay externally. When we packed sniffed the traffic we can see calls to the file share and file access paths.

The program does work fine, using the forms held within the exe, its just a wasted call to a path thats not needed and externally delays the application while it waits for a refusal.

I have set the SET DEFAULT TO CURDIR() in the start-up file and also used the SET PATH to the same location as the running EXE. I'm just not sure why Fox is even referencing the development path.

Any ideas welcomed !!

Thanks in advance, Steve.





Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

dni


May be you need to have some "vcx" files near your exe file ...







Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

Don Higgins

You will have to provide more information.

Exactly how do you call the form







Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

sl080570

Forms are simply called with the DO FORM statement, passing no path as below...

DO FORM frm_logon






Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

Tamar E. Granor

And the project contains frm_logon.SCX

Tamar




Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

Don Higgins

Your forms are in the root directory of your project

I call my forms with this syntax:

do form Forms\Start_up_form

All my forms are located in the Forms subdirectory.






Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

sl080570

All my forms are in the root folder yes.






Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

Naomi Nosonovsky

Open some of your forms as a table (e.g. use myForms.scx and look into ClassLoc field). Perhaps somehow the actual path (and not the relative path) was written there.





Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

sl080570

Many thanks for the lead. I've checked all memo fields on the form that have values (i.e. those with a capital M in Memo) and none have references to the path. Thanks again.






Re: Form Load Events Call Development Path SCX Files In Compiled EXE Run Time

Don Higgins

Then check any code in your form, or prg, that has SET DEFAULT in it.

I use this code to make sure I am where I think:

DefaultDir = SYS(5) + SYS(2003)

SET DEFAULT TO (DefaultDir)

lcpath = FULLPATH( CURDIR() ) + ";prgs;menus;graphics"

SET PATH TO &lcpath

Now when I call a form I just say

do form FORMS\MyForm

In your case you should be able to remove any other set default commands.