Autodesk ObjectARX
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
There is a debug in ObjectArx 2011 or AutoCAD 2011 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: There is a debug in ObjectArx 2011 or AutoCAD 2011 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
Re: There is a debug in ObjectArx 2011 or AutoCAD 2011 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I got the same error when i try to upload my arx apps on autocad
Edited by
Discussion_Admin
Re: There is a debug in ObjectArx 2011 or AutoCAD 2011 ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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:
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:
n_kUnloadAppMsg (pkt) ;
// TODO: Unload dependencies here
return (retCode) ;
}
