My guess would be that since the MouseMove event gets triggered quite often as
the user moves the mouse, your program is calling your code more times than it
can handle.  Since you probably don't need it to be called quite so often, you
could try Dim-ing a global boolean variable, set it to FALSE at the program's
startup, test for TRUE when you enter MouseMove, if FALSE, set it to TRUE and
proceed with your processing, then set it back to FALSE at the end of MouseMove,
something like:

Dim bMouseMove as Logical

Sub Form_Load()
...
bMouseMove = FALSE
...
End Sub

Sub Map1_MouseMove(...)
If Not bMouseMove Then
    bMouseMove = TRUE
    'your code here...
    bMouseMove = FALSE
End If
End Sub

Hope this helps,
Gary.


----------------------------------------------------------------------
To unsubscribe from this list, send e-mail to [EMAIL PROTECTED] and put
"unsubscribe MAPINFO-L" in the message body, or contact [EMAIL PROTECTED]

Reply via email to