I have a program that creates a drawing. It worked in Visual Studio 2010 with AutoCAD 2010.
I'm now using Visual Studio 2012 with AutoCAD 2015.
We have a web page that creates a batch file, a script, and a text file.
The text file contains the parameters for the program.
The script loads the dll, enters the command to run the program and gives two values that the program asks for.
The .bat file launches AutoCAD 2015 and runs the script.
If I launch AutoCAD myself and enter the command "scr", pick the script and run it, it will create the drawing without a problem.
If I double pick the .bat file (which will launch AutoCAD and run the script) my drawing is only a handful of lines and leaders that go off in infinity to the left and right and I get a JIT error.
Has anyone run into this problem before?
BTW I have changed the code to use .Net Framework 4.5 and I've used the AcCoreMgd, AcDbGmd, and the AcMgd from the 2015 ObjectArx.
Is there something I'm missing?
Thanks in advance,
Mark