i found a little bug when you are resizing the window
too fast, the console sometimes fails to
ATLASSERT(someBmp != NULL), since the
ConsoleView::RepaintText is trying to use the
offscreen buffers when they're recycled.
i hope this code fixes it. just add the attached
CriticalSection.h into the project (or rather use some
built-in ATL class, if there is one, i dont know), and
1. include CriticalSection.h into the ConsoleView.h
2. add a private static critical section to the
static CriticalSection m_bufferLock;
3. add an implementation for it in the .cpp
4. and modify the
methods so they begin with the following statement:
Log in to post a comment.