Information générale
Catégorie:
Codage, syntaxe et commandes
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.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement