>>Hi everybody,
>>
>>When an error occurs in the application, the error message is displayed, but then there is quite often a situation, where application could not be gracefully closed and VFP errors are displayed and the user has to kill the application, because there is no other way out. The most typical problem is unclosed transaction. Should the application be smart enough to rollback all open transactions in Cleanup code?
>
>Yes. I consider the operation of manual killing as a bug.
>
>>
>>Did you find this problem as well? How did you solve it?
>>
>
>Catch every error exit path, and fix it.
>
>>Thanks in advance.
Hi Fabio,
Do you advocate to write bug-free code (if this is possible at all) or improve the Cleanup routine and add code to rollback in all opened DS?
If it's not broken, fix it until it is.
My Blog