Where is this popup message from? The service process or AutoCAD itself? I'd
bet it is from the service process (it may even have a built-in setting that
limits the instances of AutoCAD on the server to avoid resources running
out).
Depending on how AutoCAD is automated, the possible reason could be whenever
an instance is launched, an AcadApplication variable is set. Since the
instance is terminated the "SendCommand('Quit')", the Acad Instance is gone
while the AcadApplication variable may still live in the process. Depending
on how the process counts the number of instance, it may give this popup
message.
If AutoCAD is automated through ActiveX, it is not good way to terminate
Acad instance by using "Sendcommand", it should be done with
AcadApplication.Quit() method.
It is also very possible the way the service keeps instance count is
designed wrong.
"Zirconium" wrote in message
news:19203899.1096484848472.JavaMail.jive@jiveforum1.autodesk.com...
> A little background: we have AutoCAD running a VBA .dvb file on a server
that is constantly looking for files of a specific type to process. If this
specific file contains the word 'STOP', the current drawings are closed and
SendCommand('Quit ') is executed. The problem occurs after autocad has been
exited and a new instance is started (by a monitoring service/process).
After AutoCAD exits & is re-opened for the 32nd time, i get the following
error: (see attachment)
>
> AutoCAD Startup Problem
>
> There are already the maximum of 32 sessions of AutoCAD running.
>
>
> Why does autocad think there are so many sessions? All of the previous
sessions closed by themselves and there is always only 1 running instance in
Task Manager.
>
> Any Ideas???