On 19-Sep-2001 Jean-Marc Lasgouttes wrote:

> Not really, because the selection.cursor = cursor is done _before_
> doing a setcursor (which invalidates selection.cursor). So it would

??? Why should a setCursor invalidate a selection.cursor?
Could you explain please?

> I'd rather have a 
>   validateCursor(bview, selection.cursor) 
> that I can call when I suspect that the cursor is not valid anymore.

Sure but we should never be in this situation! What we would need is
some sort of mechanism which tells us that a pointer we use is not
valid anymore, but how to do such a thing??? Well we could have a function
CheckRowPointer(Row * ptr) in which we look if the ptr is still available
by doing a sequential search in first_row, first_row->next, ...

        Jürgen

--
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._
Dr. Jürgen Vigna        E-Mail:  [EMAIL PROTECTED]
Italienallee 13/N       Tel/Fax: +39-0471-450260 / +39-0471-450253
I-39100 Bozen           Web:     http://www.sad.it/~jug
-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._-._

"Silent gratitude isn't very much use to anyone."
-- G. B. Stearn

Reply via email to