Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File does not exist error
Message
From
21/09/2005 12:26:43
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01051528
Message ID:
01051695
Views:
9
Bob,
Then you can duplicate the error in development machine. It wouldn't be as good as tracing a code version but helps.
-Create a folder and put your files there as would be on a client machine.
-Temporarily rename your development folders to something else (so file would not be found from those folders)
-Launch VFP and set defa to your test folder.
-Set path to none (set path to)
Launch your exe with a wrapper code:
On Error Do myHand With ;
  ERROR( ), Message( ), Message(1), Program( ), Lineno( )

Do myApplication.exe

Function myHand
  Lparameters tnErrNo, tcErrMsg, tcCode, tcProgram, tnLineNo
  Local m.lcMessage, lnProgLevel,lcProgStack
  lcProgStack='Program stack :'+Chr(13)
  For lnProgLevel=1 To Program(-1)
    lcProgStack = m.lcProgStack + Chr(13) + Program(m.lnProgLevel)
  Endfor

TEXT to m.lcMessage textmerge noshow
Error #<<tnErrNo>> occurred
At Line <<tnLineNo>> of your Program <<tcProgram>>

Line with error :<<tcCode>>
Error text : <<tcErrMsg>>

<<lcProgStack>>
ENDTEXT
  Messagebox(m.lcMessage)
  On Error
  Cancel
Endproc
It might help you to find out where it occurs at least.
Cetin

>Yes, there is an error handler, but this error is not logged.
>>>Hello all,
>>>
>>>I am getting the above error when running an MM app. The error happens only on machines that are not development machines. Therefore, I cannot duplicate the error and trace it to find where the error resides.
>>>
>>>The documentation for MM says when this occurs, to delete all FXP's in the Framework. Does this mean all compiled programs in my project or just the Framework files? Either way, I do not believe this would fix the problem.
>>>
>>>Any ideas are appreciated.
>>>
>>>TIA
>>
>>Isn't there some sort of error handler that logs info about error details in your application?
>>Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform