Author Topic: True Color and Color Books using Vlisp  (Read 13341 times)

0 Members and 1 Guest are viewing this topic.

T.Willey

  • Needs a day job
  • Posts: 5251
Re: True Color and Color Books using Vlisp
« Reply #15 on: November 04, 2010, 02:08:56 PM »
I can't remember where I saw it, but something is wedged in my brain saying that the AcCmColor object is a static object, with the implication that there is only one of them in any given AutoCAD, implemented via the interface object.  I don't explicitly release the interface object and haven't run into problems with it.
Should one release the Color object that is gotten in your code Ron?


Ummmm ... not sure  :? I'd imagine it would not hurt but I'd have to leave that answer to the forum gurus :).

My thinking was along the lines of ObjectDBX.  One uses ' GetInterfaceObject ' with that also, and it is suggested that one released the object, and sets the variable to nil ( one way or another ), so I was going off of that.  If someone knows, and can answer, that would be awesome, if not, then maybe some testing is in order.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

Lee Mac

  • Seagull
  • Posts: 12905
  • London, England
Re: True Color and Color Books using Vlisp
« Reply #16 on: November 04, 2010, 02:23:42 PM »
IMO, there is no harm in releasing the object, so if in doubt release it anyway.