What does releaseComObject() actually do?

I came across this in the Lucee documentation. Tested it, but it doesn’t
seem to actually do anything, or at least when I created a component,
releaseComObject()ed it, then did a dump it was still around. Is this
supposed to work with components, or other types of com objects?

Thanks!

It’s used when you create a ‘com’ object.

obj = createobject(‘com’, ‘some.activex.thing.or.whateva’)
obj.dosomething()
releaseComObject(obj)

This is only really relevant on windows, as that’s where you’re likely to
want to use COM objects.On Tue, 20 Oct 2015 17:28 Jonathan Brookins <@Jonathan_Brookins> wrote:

I came across this in the Lucee documentation. Tested it, but it doesn’t
seem to actually do anything, or at least when I created a component,
releaseComObject()ed it, then did a dump it was still around. Is this
supposed to work with components, or other types of com objects?

Thanks!


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/62d9e96e-f0b5-4d22-aede-ac5b6b309f81%40googlegroups.com
https://groups.google.com/d/msgid/lucee/62d9e96e-f0b5-4d22-aede-ac5b6b309f81%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Ah, I was afraid of that. Thanks for the confirmation, Chris.On Tuesday, October 20, 2015 at 1:39:23 PM UTC-4, Chris Blackwell wrote:

It’s used when you create a ‘com’ object.

obj = createobject(‘com’, ‘some.activex.thing.or.whateva’)
obj.dosomething()
releaseComObject(obj)

This is only really relevant on windows, as that’s where you’re likely to
want to use COM objects.

On Tue, 20 Oct 2015 17:28 Jonathan Brookins <jon.br...@gmail.com <javascript:>> wrote:

I came across this in the Lucee documentation. Tested it, but it doesn’t
seem to actually do anything, or at least when I created a component,
releaseComObject()ed it, then did a dump it was still around. Is this
supposed to work with components, or other types of com objects?

Thanks!


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/62d9e96e-f0b5-4d22-aede-ac5b6b309f81%40googlegroups.com
https://groups.google.com/d/msgid/lucee/62d9e96e-f0b5-4d22-aede-ac5b6b309f81%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.