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
AcDbGripDa ta GetGripPoi nts() confusion. .....
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
It states in the documentation:
"The caller is responsible for freeing the AcDbGripData objects whose pointers are in the grips array."
I am fine with this, but, to do this the array of grip data objects must be stored or cached somewhere in order to be cleaned up. How do you do this when the subGetGripPoints() function is 'const'? Surely a member variable on the custom entity won't suffice.
Any suggestions?
Thanks
Mike
Re: AcDbGripDa ta GetGripPoi nts() confusion. .....
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
If the caller is responsible for the AcDbGripData objects, you can't safely cache pointers to their memory (because the caller will delete them, leaving you with pointers to freed memory).
--
Owen Wengerd
ManuSoft
Owen Wengerd
ManuSoft
Re: AcDbGripDa ta GetGripPoi nts() confusion. .....
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok, so, in the case of subGetGripPoints(...) the caller would be the Autocad framework, so I don't need to worry about the AcDbGripData object pointers themselves... Just any appData structures that I may pass into them.
Thanks
Mike
