Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Loking for a file on drive C: ?
Message
 
To
28/06/2014 01:20:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01602647
Message ID:
01602881
Views:
102
Hi Naoto. Thanks for replying.
MyErorRoutine is included in the Project File
Also, there is just one .EXE
Regards,
Gerard


>Is the MyErrorRoutine.PRG excluded in the project file?
>
>Also, in the case if your application isn't built as a monolithic EXE, you've got to be careful about the "visibility" of certain program files -- especially if they're a target to event traps such as ON ERROR. In this case you'll have to be mindful about the "visibility" of PRG files in the various contexts. Anything you might need to be visible from any subprogram or module, you could place as a PROCEDURE/FUNCTION in the main calling procedure, or make it something attached through a SET PROCEDURE -- that way it should be visible anywhere in the program as it will show up in the call stack.
>
>>Hi Tamar
>>Thanks for replying
>>I may have this in a few places but not sure that would be related in that the error is happening inconsistently and from different places in the app
>>Forgot to say in initial thread that :
>> c:\users\fred\appdata\local\temp\MyErrorRoutine.fxp
>>
>>User fred is Me i.e. My development machine and there is no user fred on the site the app is deployed in
>>Neither do I bave anything in the Config.fpw file
>>
>>How could the exe be throwing up a reference looking for the devlopment machine User ??
>>
>>Regards,
>>Gerard
>>
>>
>>>>Hi.
>>>>We have an app deployed on a Shared Network drive and its comomg up with a Program error as follows:
>>>>
>>>>------------------------------------------------------------------------
>>>>Program error
>>>>c:\users\fred\appdata\local\temp\MyErrorRoutine.fxp
>>>>------------------------------------------------------------------------
>>>>
>>>>All data and programs (.exe) are on a Shared Mapped Drive (K:) and nothing should be on Drive C:
>>>>There is an -> ONerror Do MyErrorRoutine in the Calling Program
>>>>
>>>>Why would it be looking for anything on a Local drive related to the user ?
>>>>This relates to a Windows 8 pc connected to a Shared Windows Drive on another machine
>>>>(There are only 4 users on the system )
>>>>
>>>>
>>>>The error message comes up about 4 times a day so it seems to be random, other than this no other problems
>>>>
>>>>Same app running in lots of other sites (Inclusing Windows 8) without any problems
>>>>
>>>
>>>Is there anywhere in the application where you temporarily change the error handler and then set it back? Maybe something like:
>>>
>>>
>>>cError = ON("ERROR")
>>>ON ERROR Somethig else
>>>Blah
>>>blah
>>>ON ERROR &cError
>>>
>>>
>>>Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform