L
Lloyd Dupont
- if I use the default new operator, are all the instance variable
initialize to NULL / 0 ?
- if there is not enough memory what happend with new ? does it return NULL
or throw an exception?
- if new throw a native C++ exception what happen in Managed C++ ?!
- if there is an exception in a construtor, is ~MyClass() called?
- if I want to throw an exception in a constructor should I free all native
type before? or should I throw and let the destructor (which check nullity
before deleting) do its job?
initialize to NULL / 0 ?
- if there is not enough memory what happend with new ? does it return NULL
or throw an exception?
- if new throw a native C++ exception what happen in Managed C++ ?!
- if there is an exception in a construtor, is ~MyClass() called?
- if I want to throw an exception in a constructor should I free all native
type before? or should I throw and let the destructor (which check nullity
before deleting) do its job?