Skip to main content
Participant
June 29, 2006
Question

A question about objects and queries

  • June 29, 2006
  • 1 reply
  • 181 views
I just started using COM objects in ColdFusion. I am mostly using CreateObject, but occasionaly use <CFOBJECT>

My question is; Do I have to destroy these object variables when I am done? I know in a lot of other languages I work in, you have to "clean up'" after yourself and destroy some variables when you are done to avoid memory leaks. How does CF handle this?

While I am asking, what about queries? Do hey have to be destroyed as well? What about queries made with QueryNew?

Thank you for the help.
    This topic has been closed for replies.

    1 reply

    June 29, 2006
    Cold fusion cleans up for you.

    You do not need to explicitly destroy anything unless threads are spawned in a non standard way by Java or C code that you are using.