Hello again, Anon.
"Does your mbx display as a buttonpad successfully before you crash it by using it?" YES "Have you put a note statement in at the top of the code of plot_stops_event to check if you get there at all?" YES. I'd done that and, as I said in the orig. message, I don't even seem to get to the handler. Besides... "Try calling a different routine and seeing how far you get" SAME ERROR "The following questions are roughly based on teaching grannies to suck eggs... I assume you have a declaration somewhere that looks a bit like declare sub plot_stops_event" YES, of course, otherwise I'd get a compilation error. And it's in the same module (I discovered that is a requirement today). "Have you included mapbasic.def, icons.def and menu.def?" YES Bummer, isn't it? You may recall our discussion yesterday, about getting Stops in the correct order. Well, the same button was used to invoke my original code for that, successfully (although the code failed in its duty). Difference is, the button was a PushButton yesterday, and now it's a ToolButton. Thanks for the suggestions. I'm screwed if I can't get this working. Cheers. Terry. PS I'm the world leader in avoiding using paper, as per your message footing. :-)
