I suspect it must vary or something, I tried your code in mine, by calling the cleanup from my notivy, and it crashed mach....
so, back to the drawing board..........
scott
Hello Scott,
What msg is myNotify() getting when Mach3 is shutting down?
If the plugin is enabled then Mach3 will call also myCleanUp(). So if you have already cleaned up with myNotfiy() then you need to be sure that myCleanUp() does not cleanup again. I set a flag to true when I create the plugin dialog box. When myCleanUp() cleans up it first tests this flag to see if there is something to clean up. If so, then it does the cleanup job then clears this flag.
Tom