Visual LISP, AutoLISP and General Customization

Valued Contributor
Posts: 92
Registered: ‎03-23-2009
Message 1 of 2 (206 Views)

TPalette Infinite Loop

206 Views, 1 Replies
10-06-2011 12:24 PM

I am working in 2010 palettes where some of the palette commands issue TPNaviagte commands manipulating the tool palette structure. So for example some of the palette choices might flip to a specific palette. Some might set the palette to a specific group. This works most of the time but sometimes AutoCAD goes into an infinte loop where it appears from the messages flying by in the command window that the same palette command is executing over and over as fast as the system will let it.


Still laughing? It is sometimes possible to recover from this by killing the AutoCAD session in with the Windows Task Manager. AutoCAd is hard to kill when this is happening. Usually revovery is impossible as AutoCAD will seem like it has come back to life (even though task manager was told to kill it) but then it resort back to the loop on any command issuance. 


Has anyone seen this before or have a specific way of handling TPNavigate commands within palettes? I am thinking that perhaps the mouse click events are sticking around for the next palette to think is click on itself. 

Valued Contributor
Posts: 92
Registered: ‎03-23-2009
Message 2 of 2 (180 Views)

Re: TPalette Infinite Loop

03-10-2012 08:34 PM in reply to: aksaks

I still see this happening every now and then and not always on the same palette command or machine. Nor does it happen only to a TPNaviagte command. It also occurs in 2012. One of the messages flying by is executetool or something like that.


The behavior is as if the mouse click sticks around. I wonder if AutoCAD is taking an ending character in the tool's command line, perhaps a space, and thinking it is another keypress on the tool's control to restart the command.


There is some combination of mouse clicks and esc keypress timing, I don't know exactly which because I'm trying everyting under the sun to break out of it, for more than five minutes, that can force AutoCAD to start another command. Having another command start will break the cycle.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community