Here's one that hurt and took a bit to find
I have some library code (old stuff ) to draw modular polyline shapes. The code uses
(setq ss (ssadd))
then this sort of thing
.. (ssadd (vlax-vla-object->ename tmp) ss)
anyhow
I was doing repeat calls to this routine and collecting the returned plines into a selection set { again using SSadd in the app' }
My selection set never contained all the entitys I expected.
Turned out that the Library routine did not have a variable SS declared local, so the (setq ss (ssadd)) in the library was wiping out the SS in the app'
To add to the misery this was only a problem because I was in dev mode with the new app variables global. ... when compiled the app was fine 'cause the app SS WAS declared local for compiling,
[ /slap kerry around the ears]