Changeset 1715 for trunk/psLib/src/sysUtils/psMemory.c
- Timestamp:
- Sep 7, 2004, 2:15:16 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/sysUtils/psMemory.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/sysUtils/psMemory.c
r1696 r1715 9 9 * @author Robert Lupton, Princeton University 10 10 * 11 * @version $Revision: 1.3 5$ $Name: not supported by cvs2svn $12 * @date $Date: 2004-09-0 7 19:05:07$11 * @version $Revision: 1.36 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2004-09-08 00:15:16 $ 13 13 * 14 14 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 104 104 if (ptr->refCounter < 1) { 105 105 psErrorMsg(ERRORNAME_PREFIX "memProblemCallbackDefault", false, PS_ERR_MEMORY_CORRUPTION, 106 PS_ERRORTEXT_ memProblemCallbackDefault_MULTIPLE_FREE,106 PS_ERRORTEXT_psMemory_MULTIPLE_FREE, 107 107 ptr->id, ptr->file, ptr->lineno, file, lineno); 108 108 } … … 232 232 if (m == NULL) { 233 233 psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION, 234 PS_ERRORTEXT_ checkMemBlock_NULL_BLOCK);234 PS_ERRORTEXT_psMemory_NULL_BLOCK); 235 235 return 1; 236 236 } … … 239 239 // using an unreferenced block of memory, are you? 240 240 psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION, 241 PS_ERRORTEXT_ checkMemBlock_DEREF_USE,241 PS_ERRORTEXT_psMemory_DEREF_BLOCK_USE, 242 242 m->id); 243 243 return 1; … … 246 246 if (m->startblock != P_PS_MEMMAGIC || m->endblock != P_PS_MEMMAGIC) { 247 247 psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION, 248 PS_ERRORTEXT_ checkMemBlock_UNDERFLOW,248 PS_ERRORTEXT_psMemory_UNDERFLOW, 249 249 m->id); 250 250 return 1; … … 252 252 if (*(void **)((int8_t *) (m + 1) + m->userMemorySize) != P_PS_MEMMAGIC) { 253 253 psErrorMsg(ERRORNAME_PREFIX "checkMemBlock", true, PS_ERR_MEMORY_CORRUPTION, 254 PS_ERRORTEXT_ checkMemBlock_OVERFLOW,254 PS_ERRORTEXT_psMemory_OVERFLOW, 255 255 m->id); 256 256 return 1;
Note:
See TracChangeset
for help on using the changeset viewer.
