netcrocodile Posted April 6, 2009 Posted April 6, 2009 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!
Moderators SmOke_N Posted April 6, 2009 Moderators Posted April 6, 2009 Hi,what works in VBscript with set object = nothingseems 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.
Marlo Posted April 6, 2009 Posted April 6, 2009 If memory serves you have to assign a 0 to the object to release it. $object = 0 Click here for the best AutoIt help possible.Currently Working on: Autoit RAT
netcrocodile Posted April 6, 2009 Author Posted April 6, 2009 Thanks, but unfortunately this wont work
jvanegmond Posted April 6, 2009 Posted April 6, 2009 Thanks, but unfortunately this wont work What won't work ? Nothing or 0?I'll post what Smoke posted again: http://www.autoitscript.com/forum/index.php?showtopic=64966 github.com/jvanegmond
netcrocodile Posted April 6, 2009 Author Posted April 6, 2009 Neither $Nothing nor 0 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now