Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GetItem, get_Item, Release and NULL

0 REPLIES 0
Reply
Message 1 of 1
oransen
276 Views, 0 Replies

GetItem, get_Item, Release and NULL

In C++ COM if I use GetItem do I have to Release the pointer returned to me?

 

Or set it to NULL

 

Or do nothing because it is already handled properly?

 

And how does that compare when I use the other format, get_Item ?

 

I realise that GetItem can throw an exception whereas get_Item returns an error value, but beyond that do I treat the pointers in the same way?

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report