One Man's Notes
Monday, November 28, 2016
c++ Pause Hack
A Snippet to use to make something pause until a debugger can attach to it.
void pauseForTest()
{
FILE *fin = 0;
do {
if (fin)
fclose(fin);
::Sleep(2000);
fin = fopen("C:\\delme\\pause.txt", "r");
} while (fin);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment