[C++]使用Global Flags偵測記憶體越界錯誤January 3, 2012int _tmain(int argc, _TCHAR* argv[]) { int m_len = 5; char *m_p = (char *)HeapAlloc (GetProcessHeap (), HEAP_ZERO_MEMORY, m_len);m_p[m_len] = 0;HeapFree (GetProcessHeap (),0, m_p);return 0; }C++Software