ObjectARX
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

3 REPLIES 3
Reply
Message 1 of 4
Yangxiaobing
1022 Views, 3 Replies

There is a debug in ObjectArx 2011 or AutoCAD 2011 ?

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

3 REPLIES 3
Message 2 of 4
JetSkier
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

Message 3 of 4
webgain
in reply to: Yangxiaobing

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

 

Edited by
Discussion_Admin

Message 4 of 4
Yangxiaobing
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::On_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::On_kUnloadAppMsg (pkt) ;

  // TODO: Unload dependencies here

  return (retCode) ;
 }

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

”Boost