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

How do I write 'DoEvents' in C++?

$
0
0
My program is written in C++/CLR (but not /pure). The program is fairly involved. At the end, I call a function calledReleaseMemory() which deletes the various arrays that were initialized withnew. It turns out that when this function is called another part of the program is still executing while using some of that memory, so it bombs. Had I been writing in C# (as I usually do) I would have addedApplication.DoEvents() before trying to release memory. What C++ call will accomplish the same function? I use Windows7, VS2010. Thank you in advance.

gabriel weinreich


Viewing all articles
Browse latest Browse all 15302

Trending Articles



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