Questions tagged [destroy]

In object-oriented languages, objects need to be destroyed after their creation to free memory. Destruction can however have a broader meaning. Sometimes, destruction means that resources must be freed or that files must be deleted.

In object-oriented languages, objects need to be destroyed after their creation to free memory. This is not necessarily something that a programmer needs to explicitly instruct. Garbage collected languages such as Java or Python take care of object destruction for you. Other languages such as C++ require the programer to destroy objects explicitly.

Destruction can however have a broader meaning. Sometimes, destruction means that resources must be freed or that files must be deleted.

982 questions
-2
votes
4 answers

How to destroy an activity

In fact, I am new to Android App Development. In my application, I have a couple of activities and I have provided my users with an exit option menu to be able to leave the application. But there is a problem. When they hit the Exit button, they are…
Behzad Moradi
  • 67
  • 2
  • 3
  • 6
-3
votes
1 answer

C# destroy or disable particular objects of class

i have a windows form and a class named testclass.cs . the below sample code is for testclass.cs using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace testApp { public class testclass { …
Lazy Programer
  • 171
  • 1
  • 1
  • 12
-3
votes
3 answers

Code a webpage to self destruct after viewed

I have a message "my secret message" that I will type up on a html or php page. myexample.com/secretlink.html How can I make it that when someone accesses my page a timer maybe with JS will start(easy part) but when timer is up it activates a code…
Sammy7
  • 364
  • 6
  • 21
-4
votes
1 answer

how can i run a code after the function root.destroy

hello i'm working on python using tkinter , i want to run a window (in Main) after destroy the first window in Login class , but the problem is that the code stop at the root.destroy and don't execute the reste of the code i tried to replace…
Antony
  • 1
  • 2
-4
votes
1 answer

Destroy a deactivated object

I want simply to destroy a deactivated instance of a Quad prefab (hp bar) , am able to destroy activated ones with : private GameObject correspondingHpBar; private string correspondingHpBarName; void Start() { correspondingHpBarName =…
Huskarnov
  • 9
  • 3
-5
votes
1 answer

How can i deny activity to be destroyed

I'm starting the activity "B" from the activity "A". When I'm closing the activity B using the back button or method finish(), the activity A is recreating. How can i deny activity to be destroyed?
Ingvar
  • 1
-7
votes
2 answers

How to destroy widgets?

I want in my if statement for it to destroy the buttons on my tkinter. I have tried a couple of methods and looked up a few and some i don't understand/too complicated. I have tried making the function create a new window but it isn't…
1 2 3
65
66