ObjectARX

ObjectARX

Reply
New Member
Yangxiaobing
Posts: 2
Registered: ‎01-28-2011
Message 1 of 4 (804 Views)

There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

804 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

Contributor
JetSkier
Posts: 15
Registered: ‎11-13-2006
Message 2 of 4 (736 Views)

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

Contributor
webgain
Posts: 11
Registered: ‎02-01-2011
Message 3 of 4 (691 Views)

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

New Member
Yangxiaobing
Posts: 2
Registered: ‎01-28-2011
Message 4 of 4 (661 Views)

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) ;
 }

 

 

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.