Author Topic: Exception in accoremgd.dll ARX command  (Read 1922 times)

0 Members and 1 Guest are viewing this topic.

latour_g

  • Newt
  • Posts: 184
Exception in accoremgd.dll ARX command
« on: May 20, 2015, 01:40:27 PM »
In AutoCAD 2014, I have two menus that are loaded.  One of them I made it myself and the other is from someone else.

There seem to be an incompatibility between the two menus because when I execute a specific command of my menu, I get an error message after the close of AutoCAD.
By "specific command", I mean this :

Code: [Select]
        public static void callCMD(string cParameter)
        {
            Document doc = AcadApp.DocumentManager.MdiActiveDocument;
            Object ActiveDoc = DocumentExtension.GetAcadDocument(doc);
            Object[] data = { cParameter };
            ActiveDoc.GetType().InvokeMember("SendCommand", System.Reflection.BindingFlags.InvokeMethod, null, ActiveDoc, data);
        }

If only my menu is loaded, there is no problem at all.  I don't have this problem when using AutoCAD 2015.
« Last Edit: May 21, 2015, 09:39:33 AM by latour_g »