Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is ASSERT used for?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00141677
Message ID:
00141728
Views:
32
Mark..

Assertions are for developers only. What good does it do for an end-user to see a dialog that displays as a result of a failed assertion. Craig is 100% correct here in that when distributing your application - Set Assert should be off.


>>When you distribute your application, you can SET ASSERT OFF and the assert will be ignored.
>
>However, I've heard good arguments for why ASSERT should never be turned off (or, rather, that it should be replaced with real error-handling code). Turning ASSERTs off is like saying your app can't possibly contain the bugs the assertions are supposed to trap. I know I can't say this with absolute certainty about my code.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform