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
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
I got the same error when i try to upload my arx apps on autocad
Edited by
Discussion_Admin
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) ;
}