Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
Valued Contributor
aksaks
Posts: 93
Registered: ‎03-23-2009
Message 1 of 2 (220 Views)

TPalette Infinite Loop

220 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
aksaks
Posts: 93
Registered: ‎03-23-2009
Message 2 of 2 (194 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.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.