Champak Posted June 18, 2023 Posted June 18, 2023 When using gdi plus, if the app ends abruptly and the resources are not properly cleaned up and gdi plus isn't shutdown, are those resources and dll still active on the computer, or is everything cleaned up and shutdown once the app exits regardless? If they do remain, how can they be cleaned up besides restarting the computer?
ioa747 Posted June 18, 2023 Posted June 18, 2023 #include <MsgBoxConstants.au3> OnAutoItExitRegister("MyTestFunc") Local $Test1 = StringSplit("this is it", " ") Sleep(1000) MsgBox(0, "test", $Test1[6]) Func MyTestFunc() MsgBox(0, "MyTestFunc", 'Exit Message from MyTestFunc') EndFunc ;==>MyTestFunc I know that I know nothing
Solution Andreik Posted June 18, 2023 Solution Posted June 18, 2023 AutoIt clean up all these stuffs but it's a good practice to register a function when AutoIt exit unexpected.
Champak Posted June 21, 2023 Author Posted June 21, 2023 Yeah, I do have an exit function registered, but I also have a consolewrite in that function and have noticed a couple times where that function didn't actually activate so that's why I was inquiring if gdiplus lingered in the memory after the script/app exits without cleaning everything up. Good to know it all gets cleaned up regardless, thanks.
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