KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Questions tagged
destructor
50 questions
Follow Tag
Sort by:
Newest
Votes
Active
15
votes
3
answers
Avoid repeating the same code in copy constructor and operator=
c++
destructor
copy-constructor
assignment-operator
code-sharing
asked 2013-07-10T09:59:01.367
9
votes
5
answers
Is not providing an explicit destructor bad practice?
c++
destructor
asked 2013-07-09T06:43:24.397
10
votes
3
answers
When is destructor called for C# classes in .NET?
c#
.net
destructor
asked 2013-06-24T07:40:11.537
8
votes
1
answers
Why does Python destroy class variables before objects?
python
class
scope
destructor
asked 2013-03-14T04:12:01.923
8
votes
2
answers
Exceptions in C++ destructors if there is no uncaught_exception
c++
exception
destructor
asked 2013-03-05T11:10:41.073
58
votes
2
answers
How to deal with "exit-time destructor" warning in clang?
c++
c++11
warnings
clang
destructor
asked 2013-01-15T10:17:39.773
10
votes
2
answers
How to use contextmanagers for instance variables
python
destructor
with-statement
asked 2013-01-06T15:50:07.753
16
votes
1
answers
Matlab: Class destructor not called during clear?
oop
matlab
destructor
asked 2012-12-27T15:46:47.627
107
votes
1
answers
Forward declaration with unique_ptr
c++
destructor
forward-declaration
unique-ptr
asked 2012-11-16T10:23:35.300
13
votes
5
answers
Naming convention for constructors and destructors in C
c
constructor
naming-conventions
destructor
asked 2012-09-25T13:24:00.767
14
votes
1
answers
Delete vs operator delete (and void pointer)
c++
destructor
void-pointers
delete-operator
asked 2012-05-13T17:18:46.343
10
votes
4
answers
Why is not deleting an object that has a destructor with a side effect undefined behavior in C++11?
c++
memory-leaks
c++11
destructor
undefined-behavior
asked 2012-04-02T06:04:15.137
15
votes
3
answers
Does the destructor get called automatically
c++
destructor
asked 2012-02-28T18:26:57.773
141
votes
6
answers
How to destroy an object?
php
object
destructor
destroy
asked 2012-01-10T04:09:02.963
9
votes
5
answers
How can I emulate constructor and destructor behavior (for particular data types) in C
c++
c
constructor
destructor
asked 2012-01-07T11:58:17.257
99
votes
1
answers
Can goto jump across functions without destructors being called?
c++
memory-leaks
language-lawyer
destructor
goto
asked 2011-09-07T13:47:24.250
9
votes
1
answers
When is destructor called in a WCF service
c#
wcf
session
destructor
asked 2011-09-03T18:59:39.417
10
votes
3
answers
Are moved-from objects required to be destructed?
c++
c++11
destructor
rvalue-reference
move-semantics
asked 2011-08-04T15:05:20.630
13
votes
3
answers
Object doesn't get garbage collected
c#
events
garbage-collection
destructor
asked 2011-07-25T14:59:54.467
11
votes
4
answers
When reassigning variable, the destructor is not called.. (C++)
c++
destructor
asked 2011-07-04T19:38:53.223
10
votes
5
answers
Why has the destructor been called only once?
c++
destructor
asked 2011-06-21T07:59:46.810
21
votes
7
answers
How does the C++ runtime system know when objects go out of scope
c++
runtime
destructor
asked 2011-03-26T20:26:14.647
210
votes
7
answers
When should I create a destructor?
c#
destructor
asked 2011-02-04T13:55:31.430
23
votes
3
answers
What happens to base class destructor if a derived class destructor throws an exception
c++
exception
destructor
memory-leaks
asked 2010-12-22T11:08:41.280
55
votes
3
answers
Is destructor called if SIGINT or SIGSTP issued?
c++
destructor
sigint
asked 2010-11-22T20:37:25.367
15
votes
4
answers
How to write a class destructor in Scala?
scala
destructor
asked 2010-10-23T03:35:53.113
104
votes
3
answers
How is it possible (if it is) to implement shared_ptr without requiring polymorphic classes to have virtual destructor?
c++
destructor
smart-pointers
asked 2010-10-10T09:41:01.797
14
votes
4
answers
Why should I use Free and not FreeAndNil in a destructor?
delphi
destructor
delphi-2007
asked 2010-08-18T08:22:05.720
12
votes
8
answers
order of destruction using virtual
c++
destructor
virtual-destructor
asked 2010-08-17T21:29:17.867
20
votes
4
answers
Can I destruct a structure in C++?
c++
destructor
asked 2010-08-17T20:03:27.513
54
votes
5
answers
Goto out of a block: do destructors get called?
c++
destructor
goto
asked 2010-07-05T13:41:33.083
14
votes
4
answers
Why aren't virtual destructors enforced for a base class
c++
oop
destructor
theory
asked 2010-06-20T23:03:30.380
13
votes
4
answers
php destructor behaviour
php
oop
destructor
asked 2010-05-06T01:49:01.300
24
votes
3
answers
Will exit() or an exception prevent an end-of-scope destructor from being called?
c++
destructor
exit
asked 2010-04-19T14:17:09.863
9
votes
4
answers
Destructors not called when native (C++) exception propagates to CLR component
.net
exception
c++-cli
destructor
raii
asked 2010-03-23T18:27:33.067
62
votes
7
answers
How do you query a pthread to see if it is still running?
c
multithreading
concurrency
pthreads
destructor
asked 2010-01-28T17:01:58.657
9
votes
3
answers
Release Excel Object In My Destructor
.net
excel
release
destructor
finalizer
asked 2010-01-18T12:28:56.190
24
votes
5
answers
Can you guarantee destructor order when objects are declared on a stack?
c++
destructor
asked 2009-08-07T16:53:20.880
207
votes
11
answers
Why do we need a pure virtual destructor in C++?
c++
destructor
pure-virtual
asked 2009-08-02T19:27:29.177
12
votes
4
answers
Method that gets called on module deletion in Python
python
destructor
shutdown
asked 2009-06-03T12:00:03.483
45
votes
4
answers
How to write a simple class in C++?
c++
constructor
destructor
public
private-members
asked 2009-05-14T21:34:29.007
169
votes
11
answers
Does delete on a pointer to a subclass call the base class destructor?
c++
memory-management
destructor
delete-operator
base-class
asked 2009-03-24T14:30:32.753
68
votes
1
answers
Destructors of builtin types (int, char etc..)
c++
constructor
destructor
typedef
asked 2009-01-19T01:43:36.400
30
votes
4
answers
What is the use of "delete this"?
c++
memory-management
destructor
self-destruction
asked 2009-01-15T16:11:14.197
16
votes
7
answers
Destructor C++: type '***' argument given to 'delete', expected pointer
c++
destructor
asked 2008-12-20T02:58:22.630
68
votes
6
answers
Why destructor is not called on exception?
c++
exception
visual-c++
destructor
stack-unwinding
asked 2008-10-21T14:52:16.540
52
votes
8
answers
Is the destructor called if the constructor throws an exception?
c#
c++
destructor
finalizer
asked 2008-10-09T19:01:05.527
66
votes
7
answers
Why is there no RAII in .NET?
.net
struct
destructor
raii
value-type
asked 2008-10-06T09:25:16.500
681
votes
25
answers
Is there a destructor for Java?
java
garbage-collection
destructor
finalize
asked 2008-10-05T13:12:25.450
10
votes
11
answers
Enforcing required function call
c#
garbage-collection
dispose
destructor
asked 2008-08-21T09:57:26.463