Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

calling domodal off pointer vs off instance

$
0
0

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?


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>