Skip to content
Discussion options

You must be logged in to vote

Garbage collected.

Basically, if the object has an objectid, it’s closed, else deleted

// TODO: this could be a little cleaner,
// consider making a PyDisposableObject
inline void operator()(AcRxObject* p) const
{
if (p == nullptr)
return;
if (m_forceKeepAlive)
return;
else if (isDbroThenClose(p))
return;
else if (!m_autoDelete)
return;
else
delete p;
}

There’s a couple of rare conditions when the object is handed over to AutoCAD

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kwollaston
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants