by Richard Chidiak » Wed Oct 14, 2009 1:53 pm
James
Rao is right , i agree with the 3 points
After making further research , it looks like my file is closed somewhere in my app, it does not show on the active databases in the error.log
Nevertheless i am puzzled how we get to the error and why all the traps did not work, so i have some questions :
in setrdd() function , this line got executed
::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) },;
while
::bSkip := {| n | iif( n == nil, n := 1, ), ( ::cAlias )->( DbSkipper( n ) ) },; bombed the error.log
the following trap did not work , again i am puzzled, why select(calias) did not return 0 when the file is closed ?
cAlias := ::cAlias
IF SELECT(cAlias) = 0
return nil
ENDIF
is there a way to make sure the database is active in the paint process ? in other words, can i put a real trap to exit
It is not easy to reproduce the error, occurs on some customers rarely, it is part of a mdi environment, i will make further research to check why and how the file was closed, meanwhile i am still looking for a trap to prevent the error.log
Thanks for your help
Richard