Once doing Code Review I found a code snippet like this and so thought would share my experience here. CDialog *SomeDialog = new CMyDialog(<<Some Param>>); SomeDialog->SomeFunction(this); In the above code we always assume that SomeDialog is always allocated with the CMyDialog class pointer but that may not be the case always and so its always [...]
{ 5 comments }







