B
Bruno van Dooren
Hi, i have the following problem:
I have an unmanaged class that is derived from 2 base classes
class A : public B, C
{
...
}
the constructor is something like
A::A() : B(), C()
{
...
}
i was wondering what would happen if the contructor of B or C throws an
exception.
in that case i will never get the pointer to A, so i cannot delete it, but
what if the other constructor
(for example B()) succeeded? will B automatically be deleted (will its
constructor be invoked)? or will there be a memory leak?
kind regards,
Bruno.
I have an unmanaged class that is derived from 2 base classes
class A : public B, C
{
...
}
the constructor is something like
A::A() : B(), C()
{
...
}
i was wondering what would happen if the contructor of B or C throws an
exception.
in that case i will never get the pointer to A, so i cannot delete it, but
what if the other constructor
(for example B()) succeeded? will B automatically be deleted (will its
constructor be invoked)? or will there be a memory leak?
kind regards,
Bruno.