in a previous thread i had run time error: memory around xx corrupted
the code looks like this
myclass vars(...)
vars.domodal();
the domodal executes fine but when cancel button is hit on the dialog window i get the run time error
when i changed the code as
myclass vars=new myclass(..)
vars.domodal()
the problem is solved and no run time error occurs; the application is built in vs 2010
is there explanation?