Hi,
I am trying to handle exception in the following code
CStringArray StrArray;
StrArray.RemoveAll();
try
{
CString str;
str = StrArray.ElementAt(1);
}
catch(...)
{
AfxMessageBox("No Element Present at this Position");
throw;
}
But for the above case instead of catching the assertion of no element present at that position it directly throws an VC++ Built in Debug Assertion of Array Size without entering the catch block.
Note:- I want to execute this code in Debug Mode and not in Release mode
Regards,
Madhukar Parab