I have been searching for help on this error I encountered last night. My project consists of a couple of .NET C# programs which launch AutoCAD load and run some LISP programs to create some automated drawings. I had perfect runs testing yesterday on my desktop which is Windows 7 x64, AutoCAD 2015 Mechanical x64. The production box this will eventually be moved to is Windows 7 x64 with AutoCAD 2013 PDS x64. The codes which ran perfect on my desktop caused AutoCAD 2013 to lock up with the above error message. I got an endless loop of that message box and could not exit AutoCAD without using the Task Manager to kill the process.
The searches I did indicate that this might not be an AutoCAD error, but more related to the OS. Then I found several searches including some posts on theSwamp in which the problems seem to be related to VLISP code, not Windows. The code I'm running gets all the way to the end and it appears that when it's trying to save the file is when this happens. Trouble is, the drawing file is being created and it's all there. If I try to close AutoCAD manually it reports the same error, even though I'm not trying to save anything. If I try to open a file after this happens, the same error message box appear.
Strangely, I rebooted this 2013 machine and the code ran perfect once .... but only once. After that it went right back to the error message box. Since it's a production box I stopped all testing on it until I figure this out.
We're going to try re-installing .NET on this box as per one suggestion I read. But if this pans out, we will end up using AutoCAD 2015 Mechanical as my desktop does not exhibit this same problem. With the only exception of AutoCAD 2015 vs 2013, my desktop was built almost identical to this production machine.