|
|
| 85 |
m_disposed (false), |
85 |
m_disposed (false), |
| 86 |
m_started (false), |
86 |
m_started (false), |
| 87 |
m_aggregates ((struct Aggregates *)malloc (sizeof (struct Aggregates))), |
87 |
m_aggregates ((struct Aggregates *)malloc (sizeof (struct Aggregates))), |
| 88 |
m_getObjectCount (0) |
88 |
m_getObjectCount (0), |
|
|
89 |
m_disposeAlreadyCalled (false) |
| 89 |
{ |
90 |
{ |
| 90 |
m_aggregates->n = 1; |
91 |
m_aggregates->n = 1; |
| 91 |
m_aggregates->buffer[0] = this; |
92 |
m_aggregates->buffer[0] = this; |
|
|
| 118 |
m_disposed (false), |
119 |
m_disposed (false), |
| 119 |
m_started (false), |
120 |
m_started (false), |
| 120 |
m_aggregates ((struct Aggregates *)malloc (sizeof (struct Aggregates))), |
121 |
m_aggregates ((struct Aggregates *)malloc (sizeof (struct Aggregates))), |
| 121 |
m_getObjectCount (0) |
122 |
m_getObjectCount (0), |
|
|
123 |
m_disposeAlreadyCalled (false) |
| 122 |
{ |
124 |
{ |
| 123 |
m_aggregates->n = 1; |
125 |
m_aggregates->n = 1; |
| 124 |
m_aggregates->buffer[0] = this; |
126 |
m_aggregates->buffer[0] = this; |
|
|
| 189 |
void |
191 |
void |
| 190 |
Object::Dispose (void) |
192 |
Object::Dispose (void) |
| 191 |
{ |
193 |
{ |
|
|
194 |
NS_ASSERT_MSG (!m_disposeAlreadyCalled, "Dispose () has already been called on this object"); |
| 195 |
m_disposeAlreadyCalled = true; |
| 192 |
/** |
196 |
/** |
| 193 |
* Note: the code here is a bit tricky because we need to protect ourselves from |
197 |
* Note: the code here is a bit tricky because we need to protect ourselves from |
| 194 |
* modifications in the aggregate array while DoDispose is called. The user's |
198 |
* modifications in the aggregate array while DoDispose is called. The user's |