• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    New Member
    Yangxiaobing
    Posts: 2
    Registered: ‎01-28-2011

    There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

    731 Views, 3 Replies
    01-28-2011 01:03 AM

    When I unload my arx application in AutoCAD 2011,I get a problem.

    That is my command and my group which I load into AutoCAD 2011 through my arx application

    can not be unload.So when I load the arx application again.The AutoCAD 2011 will abort

    Please tell me how can get rid of the debug .

       Thanks

    Please use plain text.
    Contributor
    Posts: 13
    Registered: ‎11-13-2006

    Re: There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

    02-02-2011 06:19 AM in reply to: Yangxiaobing

    Are you calling acrxLockApplication() or acrxDynamicLinker->lockApplication() before your commands run?  If so, you need to call acrxUnlockApplication() when they finish.  Otherwise, you will not be able to unload your app.

     

    Joe

    Please use plain text.
    Contributor
    webgain
    Posts: 11
    Registered: ‎02-01-2011

    Re: There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

    02-06-2011 09:37 PM in reply to: Yangxiaobing

    I got the same error when i try to upload my arx apps on autocad

     

    Edited by
    Discussion_Admin

    Please use plain text.
    New Member
    Yangxiaobing
    Posts: 2
    Registered: ‎01-28-2011

    Re: There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

    02-08-2011 04:32 PM in reply to: Yangxiaobing

    There is my code. and these codes are created by ObjectArx Wizard.

    #define szRDS _RXST("wy")

    //-----------------------------------------------------------------------------
    //----- ObjectARX EntryPoint
    class Cwyarx01App : public AcRxArxApp {

    public:
     Cwyarx01App () : AcRxArxApp () {}

     virtual AcRx::AppRetCode On_kInitAppMsg (void *pkt) {
      // TODO: Load dependencies here

      // You *must* call On_kInitAppMsg here
      AcRx::AppRetCode retCode =AcRxArxApp::smileysurprised:n_kInitAppMsg (pkt) ;
      
      // TODO: Add your initialization code here

      return (retCode) ;
     }

     virtual AcRx::AppRetCode On_kUnloadAppMsg (void *pkt) {
      // TODO: Add your code here

      // You *must* call On_kUnloadAppMsg here
      AcRx::AppRetCode retCode =AcRxArxApp::smileysurprised:n_kUnloadAppMsg (pkt) ;

      // TODO: Unload dependencies here

      return (retCode) ;
     }

     

     

    Please use plain text.