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
5
votes
1 answer

Is it possible to destroy a context?

There is a memory leak in Node.JS or in V8 that removes my ability to re-use a process to jqueryify many HTML pages. The bug is here: https://github.com/joyent/node/issues/1007 Bug meanwhile, is it possible to "destroy" a context when I am done with…
700 Software
  • 85,281
  • 83
  • 234
  • 341
5
votes
3 answers

How to destroy a class object in PHP?

I wrote a little class for storing global variables/functions. My question is - is it necessary to destroy the class object after the script has finished? or will PHP destroy that object itself? Here's my code: $web=new…
Fuxi
  • 7,611
  • 25
  • 93
  • 139
5
votes
2 answers

Angular - I need avoid the destroy of the component

I have a component with an