A Dynamic CString array cannot be deleted?
-
Hi everyone, I am trying to create an array dynamically with CString, here is an example:
CString *a = new CString [nSize]; // nSize defined somewhere else // Some operation here ... delete a;
but I catch an exception .... Would you mind suggest the problem here? Thanks a lot~ -
Hi everyone, I am trying to create an array dynamically with CString, here is an example:
CString *a = new CString [nSize]; // nSize defined somewhere else // Some operation here ... delete a;
but I catch an exception .... Would you mind suggest the problem here? Thanks a lot~oops ... I am foolish I should use CStringArray with SetSize() :(
-
Hi everyone, I am trying to create an array dynamically with CString, here is an example:
CString *a = new CString [nSize]; // nSize defined somewhere else // Some operation here ... delete a;
but I catch an exception .... Would you mind suggest the problem here? Thanks a lot~ -
Hi everyone, I am trying to create an array dynamically with CString, here is an example:
CString *a = new CString [nSize]; // nSize defined somewhere else // Some operation here ... delete a;
but I catch an exception .... Would you mind suggest the problem here? Thanks a lot~ -
Hi everyone, I am trying to create an array dynamically with CString, here is an example:
CString *a = new CString [nSize]; // nSize defined somewhere else // Some operation here ... delete a;
but I catch an exception .... Would you mind suggest the problem here? Thanks a lot~delete a[]; is the clue ... she said you are the perfect stranger she said baby let's keep it like this... Dire Straits
-
Hi everyone, I am trying to create an array dynamically with CString, here is an example:
CString *a = new CString [nSize]; // nSize defined somewhere else // Some operation here ... delete a;
but I catch an exception .... Would you mind suggest the problem here? Thanks a lot~Really suddenly forget delete array should use delete [] =.= foolish me X| thanks everyone~