Jump to content
Sign in to follow this  
netcrocodile

How to release a reference to an object

Recommended Posts

netcrocodile

Hi,

what works in VBscript with

set object = nothing

seems not to work in AutoIt.

A simple $object = "" does not cut the reference.

I would need this to disconnect from an COM object, otherwise the application will not terminate because it knows that there is a reference to it. My script is a single sign on script which normally never terminates.

Thanks for any ideas!

Share this post


Link to post
Share on other sites
SmOke_N

Hi,

what works in VBscript with

set object = nothing

seems not to work in AutoIt.

A simple $object = "" does not cut the reference.

I would need this to disconnect from an COM object, otherwise the application will not terminate because it knows that there is a reference to it. My script is a single sign on script which normally never terminates.

Thanks for any ideas!

http://www.autoitscript.com/forum/index.ph...lite=%2Bnothing

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
netcrocodile

Thanks, but unfortunately this wont work :D

Share this post


Link to post
Share on other sites
netcrocodile

Neither $Nothing nor 0 :D

It is a bit weird, because if there is any reference to the application it will not close until the script terminates. But the script normally never terminates because it is a listener for events.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.