From: David M. <ig...@us...> - 2006-01-17 13:25:21
|
Update of /cvsroot/myoledb/myoledb3 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20349 Modified Files: hashtbl.cpp Log Message: Add a debug error message for when we run out of our completely hard-limited memory, so if we ever hit the same bug again, it will be a lot easier to find Index: hashtbl.cpp =================================================================== RCS file: /cvsroot/myoledb/myoledb3/hashtbl.cpp,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -u -d -r1.1.1.1 -r1.2 --- hashtbl.cpp 20 Sep 2005 14:44:44 -0000 1.1.1.1 +++ hashtbl.cpp 17 Jan 2006 13:25:10 -0000 1.2 @@ -78,7 +78,11 @@ cbCommit, MEM_COMMIT, PAGE_READWRITE ) == NULL) + { + TRACE4("Failure attempting to allocate memory. cbSlot=%d, cbCommit=%d, cbCommitCurrent=%d, cbCommitMax=%d", + plstslot->cbSlot, cbCommit, plstslot->cbCommitCurrent, plstslot->cbCommitMax); return E_OUTOFMEMORY; + } // Start position of the array islot = (ULONG) ((plstslot->cbCommitCurrent + plstslot->cbExtra) / plstslot->cbSlot); |