Hi!
I've got several random errors in my code displaying the Error 52 "No table is open in the current Work area".
I've got all of they controlled by using a general Try/Catch structure from where I can see that they occurs on the procedure Refresh and line contens "Select X" where X is the name of a cursor that is currently opened (I can see it in the current data session).
I haven't got any line like this in my code (I'm sure!)
If I suspend and go to the debugger I can see that my last line code is some like ThisForm.Refresh.
If I ignore the error sometimes nothing wrong occurs and sometimes one combobox or one grid has his list empty or only painted in white. The implied control is the one which works with that cursor.
It seems like this comes from an internal code of the refresh.
If I put a Set Step On in the code the error doesn't occur. If I change to another machine the error doesn't occur too or occurs in another form and control. Even in the same machine, with doing nothing, the error only occurs randomly! It's very hard to reproduce but it occurs several times when you aren't expecting it.
I've tried to use the log to know what happens, but I can't reproduce it with the log on.
Someone can help me?
Thanks!
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