So I'm novice at .NET and have written an app that loads a windows form, inserts several blocks depending on button click, rotates them then counts them up. it seems to be working fine. The occasional problem is when i start or open up a different drawing, running the app (always running from command line) will cause autocad to crash. Now if i go back in and open up the drawing it crashed on, it works fine and then may work on a second drawing fine. So questions, has anyone else experienced this? Is this due to the app being still resident after the first run? Am i missing some code when i hit the exit button to clear it out? (im guessing here) Anyways the code is attached for those that would like to look at it. Oh and im running in C3D 2011, compiled in .NET Framework 4.