Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Handler not working in EXE - VFP7
Message
From
03/03/2005 07:28:44
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Database:
MS SQL Server
Miscellaneous
Thread ID:
00992339
Message ID:
00992341
Views:
20
It's error number 107 (Operator/Operand type mismatch) that is trapped in debug mode. EXE mode doesn't show me anything, no dialog box, no vfp default error handler. Nada.

Thanks!

>Not all errors in VFP are trapable. What error number and message do you get? Does it shows VFP error dialog?
>
>>I'm having a weird issue with my error handler in VFP 7. It works perfectly (logs the errors and sends me an email) while I'm running in APP mode and debugging, but it's completely ignored when running in EXE mode.
>>
>>I've searched the internet and can't find a good reason or fix on why this would be happening. Hopefully it's not something I did or didn't do :)
>>
>>I have this code in my main.prg
>>
>> ON ERROR DO error2 WITH ;
>> ERROR( ), MESSAGE( ), MESSAGE(1), PROGRAM( ), LINENO(1), DBF()
>>
>>I've put in messageboxes to verify that I don't clear out the ON ERROR anywhere, and it doesn't. It doesn't even hit the error event in the form.
>>
"In three words I can sum up everything I've learned about life : it goes on." - R. Frost

Amanda Brown
Supervisor/Programmer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform