home *** CD-ROM | disk | FTP | other *** search
Wrap
// // BUGBENCH.RC2 - resources Microsoft Visual C++ does not edit directly // #ifdef APSTUDIO_INVOKED #error this file is not editable by Microsoft Visual C++ #endif //APSTUDIO_INVOKED // This file gives us the _MFC_VER define. We have to do these goofy // defines just to get this file included in a resource. Microsoft // should have put _MFC_VER in it's own include file. #define _MT #define _X86_ #define _DLL //#include <AFXVER_.h> #include "dlphires.H" //////////////////////////////////////////////////////////////////////// // Add manually edited resources here... // All of these string tables are here because they are far easier // to edit by hand than use the App Studio. // The main root objects, all the "checks". STRINGTABLE DISCARDABLE BEGIN IDS_APIANDOLECHECK "API and OLE error checking" IDS_MEMORYCHECK "Memory error checking" IDS_POINTERANDLEAKCHECK "Pointer and leak error checking" END // The descriptions of the root objects. STRINGTABLE DISCARDABLE BEGIN IDS_APIANDOLECHECKDESC "API and OLE error checking detects invalid, Windows API and OLE Interface, arguments and return codes" IDS_MEMORYCHECKDESC "Memory error checking detects invalid reads and writes to and from memory" IDS_POINTERANDLEAKCHECKDESC "Pointer and leak error checking detects invalid pointer manipulations and resource leakage" END //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // API and OLE check - Error Types. STRINGTABLE DISCARDABLE BEGIN IDS_APIFAILWINFUNCFAIL "API failure: Windows function failed" IDS_INVALIDARGGENERAL "Invalid argument" IDS_INVALIDARGBADDESTPTR "Invalid argument: Bad destination pointer" IDS_INVALIDARGBADHANDLE "Invalid argument: Bad handle" IDS_INVALIDARGBADSRCPTR "Invalid argument: Bad source pointer" IDS_INVALIDARGSTRUCTURE "Invalid argument: Structure size field is not initialized" IDS_INVALIDARGOUTORANGE "Invalid argument: Out of range" IDS_INVALIDARGCONFLICT "Invalid argument: Conflicting combination of flags" IDS_INVALIDARGUNDEFINED "Invalid argument: Undefined or illegal flags" END // Memory Check - Error Types. STRINGTABLE DISCARDABLE BEGIN IDS_DYNMEMOVERRUN "Dynamic memory overrun" IDS_INVALIDARGFREEDHANDLELOCK "Freed handle is still locked" IDS_INVALIDARGHANDLEUNLOCKED "Handle is already unlocked" IDS_STACKMEMOVERRUN "Stack memory overrun" // IDS_OVERWRITERECMEM "Static memory overrun" IDS_PTRREFSUNLOCKEDBLOCK "Pointer references unlocked memory block" END // Pointer and Leak Check - Error Types. STRINGTABLE DISCARDABLE BEGIN IDS_MEMLEAK "Memory leak" IDS_RESOURCELEAK "Resource leak" END // 1 1 ; API and OLE check - API failure: Windows function failed STRINGTABLE DISCARDABLE BEGIN IDS_APIFAILLOADBITMAPINST "LoadBitmap (Delphi)" IDS_APIFAILLOADBITMAPDESC "LoadBitmap is passed an invalid bitmap. LoadBitmap will fail if the bitmap does not exist.\nAll Windows APIs that fail will be reported via this error." IDS_APIFAILLOADMENUINST "LoadMenu (Delphi)" IDS_APIFAILLOADMENUDESC "LoadMenu is passed an invalid resource name. LoadMenu will fail if the resource does not exist.\nAll Windows APIs that fail will be reported via this error." END // 1 2 ; API and OLE check - Invalid argument: General STRINGTABLE DISCARDABLE BEGIN IDS_APIINVALIDARGDELETEMENUINST "DeleteMenu (Delphi)" IDS_APIINVALIDARGDELETEMENUDESC "DeleteMenu is called with an invalid handle to a menu. \nThis is a standard Win32 API call." IDS_APIINVALIDARGGETTEXTCOLORINST "GetTextColor (Delphi)" IDS_APIINVALIDARGGETTEXTCOLORDESC "A call to GetTextColor with an invalid handle to a device context. \nThis is a standard Win32 API call." END // 1 3 ; API and OLE check - Invalid argument: Bad destination pointer STRINGTABLE DISCARDABLE BEGIN IDS_APISTRCOPYBADDESTPTRINST "StrCopy (Delphi)" IDS_APISTRCOPYBADDESTPTRDESC "An invalid pointer is used for the StrCopy destination. The destination pointer to string functions must be valid." END // 1 4 ; API and OLE check - Invalid argument: Bad handle STRINGTABLE DISCARDABLE BEGIN IDS_APIFREEMEMBADHANDLEINST "FreeMem (Delphi)" IDS_APIFREEMEMBADHANDLEDESC "A bad handle is passed to FreeMem. Handles passed to functions must be valid." END // 1 5 ; API and OLE check - Invalid argument: Bad source pointer STRINGTABLE DISCARDABLE BEGIN IDS_APISTRCOPYBADSRCPTRINST "StrCopy (Delphi)" IDS_APISTRCOPYBADSRCPTRDESC "StrCopy source pointer is NIL. The source pointer to string functions must be valid." END // 1 6 ; API and OLE check - Invalid argument: Structure size field is not initialized STRINGTABLE DISCARDABLE BEGIN IDS_APIGETVERSIONSTRUCTSIZEINST "GetVersionEx (Delphi)" IDS_APIGETVERSIONSTRUCTSIZEDESC "GetVersionEx is called with an OSVERSIONINFO structure memset to null. The size field of structures must always be filled in." END // 1 7 ; API and OLE check - Invalid argument: Out of range STRINGTABLE DISCARDABLE BEGIN IDS_APIOUTOFRANGEINST "GetKeyState (Delphi)" IDS_APIOUTOFRANGEDESC "GetKeyState is called with an invalid virtual key code argument of 0xFFFF." END // 1 8 ; API and OLE check - Invalid argument: Conflicting combination of flags STRINGTABLE DISCARDABLE BEGIN IDS_APICONFLICTFLAGSGETSTRINGTYPEINST "GetStringType" IDS_APICONFLICTFLAGSGETSTRINGTYPEDESC "Conflicting flags in the dwInfoType argument to GetStringType. The dwInfoType argument can be either CT_TYPE1, CT_TYPE2, or CT_TYPE3." END // 1 9 ; API and OLE check - Invalid argument: Undefined or illegal flags STRINGTABLE DISCARDABLE BEGIN IDS_APIILLEGALFLAGSAPPENDMENUINST "AppendMenu (Delphi)" IDS_APIILLEGALFLAGSAPPENDMENUDESC "AppendMenu is called with an invalid fuFlags argument. The fuFlags argument to AppendMenu must be one of MF_SEPARATOR, MF_GRAYED, MF_DISABLED, MF_CHECKED, MF_BITMAP, MF_OWNERDRAW, MF_POPUP, MF_MENUBARBREAK or MF_MENUBREAK." END //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Memory Check - Error types // 2 1 ; Memory Check - Dynamic memory overrun STRINGTABLE DISCARDABLE BEGIN IDS_WRITEDYNOVERRUNINST "Overrun an allocated block (Delphi)" IDS_WRITEDYNOVERRUNDESC "Write past the end of an allocated block of memory." END // 2 2 ; Memory Check - Freed handle is still locked STRINGTABLE DISCARDABLE BEGIN IDS_APIGLOBALFREELOCKINST "GlobalFree (Delphi)" IDS_APIGLOBALFREELOCKDESC "A locked handle is passed to GlobalFree. Handles must be unlocked in order to be successfully freed using GlobalFree." END // 2 3 ; Memory Check - Handle is already unlocked STRINGTABLE DISCARDABLE BEGIN IDS_APIGLOBALFREEUNLOCKINST "GlobalFree (Delphi)" IDS_APIGLOBALFREEUNLOCKDESC "An unlocked handle is passed to GlobalFree. Handles must not have a lock count of zero when passed to GlobalFree." END // 2 4 ; Memory Check - Stack memory overrun STRINGTABLE DISCARDABLE BEGIN IDS_WRITESTACKOVERRUNSTRCOPYINST "Overrun a stack variable: StrCopy (Delphi)" IDS_WRITESTACKOVERRUNSTRCOPYDESC "Write past the end of a stack variable.\nWARNING: This bug may cause BugBench to crash." IDS_WRITESTACKOVERRUNFILLCHARINST "Overrun a stack variable: FillChar (Delphi)" IDS_WRITESTACKOVERRUNFILLCHARDESC "Write past the end of a stack variable.\nWARNING: This bug may cause BugBench to crash." END // 2 5 ; Memory Check - Static memory overrun STRINGTABLE DISCARDABLE BEGIN IDS_WRITEOVERWRITERECORDINST "Overrun an element inside a record. (Delphi)" IDS_WRITEOVERWRITERECORDDESC "Overrun the second element in a record." END // 2 6 ; Memory Check - Pointer references unlocked memory block STRINGTABLE DISCARDABLE BEGIN IDS_PTRREFUNLOCKINST "Use a pointer that is fully unlocked. (Delphi)" IDS_PTRREFUNLOCKDESC "In Windows you can allocate memory as moveable. When you do this, you must lock the memory before you can use it. If the code has been instrumented, those errors take precedence so this is reported as a writing dangling pointer error." END //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // Leak and Pointer Check - Error types // 3 1 ; Leak and Pointer Check - Dynamic memory overrun STRINGTABLE DISCARDABLE BEGIN IDS_MEMALLOCMEMINST "AllocMem (Delphi)" IDS_MEMALLOCMEMDESC "A block of memory is allocated and never freed. \n(This error is not reported until the program is terminated.)" IDS_MEMSTRALLOCINST "StrAlloc (Delphi)" IDS_MEMSTRALLOCDESC "A string is allocated and never freed. \n(This error is not reported until the program is terminated.)" IDS_MEMSTRNEWINST "StrNew (Delphi)" IDS_MEMSTRNEWDESC "A string is allocated through StrNew and never freed. \n(This error is not reported until the program is terminated.)" END // 3 2 ; Leak and Pointer Check - Resource leak. STRINGTABLE DISCARDABLE BEGIN IDS_RESBITMAPINST "Create a bitmap that is not destroyed (Delphi)" IDS_RESBITMAPDESC "All resources should be deleted when the program ends. \n(This error is not reported until the program is terminated.)" IDS_RESMENUINST "Create a menu that is not destroyed (Delphi)" IDS_RESMENUDESC "All resources should be deleted when the program ends. \n(This error is not reported until the program is terminated.)" END ////////////////////////////////////////////////////////////////////////