Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
can I combine AcDbObjectPointer and AcDbVoidPtrArray ?
The problem I'm having is the pointer doesn't seem to be valid after the end of the function.
How do I use smartpointer in this case? because I want to avoid delete pointer.
bool Dosomething(AcDbCircle* c,...); //
void myfunc(AcDbVoidPtrArray &vrr){
AcDbObjectPointer<CIR> cptr; cptr.create();
CIR* cir = cptr.object();
if (Dosomething(cir,...))
vrr.append(cir);
}
Thanks for the explanation.
Solved! Go to Solution.

