printf("DumpStack Error: DBGHELP.DLL wasn't found. " "GetLastError() returned 0x%8.8X\n", dw);
printf("DumpStack Error: DBGHELP.DLL wasn't found. GetLastError() returned 0x%8.8X\n" "                 This DLL is needed for succeessfully implementing trace-malloc.\n" "                 This dll ships by default on Win2k. Disabling trace-malloc functionality.\n" , dw);
dhwEnsureImageHlpInitialized(){  static PRBool gInitialized = PR_FALSE;  static PRBool gTried       = PR_FALSE;  if (!gInitialized && !gTried) {    gTried = PR_TRUE;    HMODULE module = ::LoadLibrary("DBGHELP.DLL");    if (!module) {      DWORD dw = GetLastError();      printf("DumpStack Error: DBGHELP.DLL wasn't found. "             "GetLastError() returned 0x%8.8X\n", dw);      return PR_FALSE;    }#define INIT_PROC(typename_, name_) \    dhw##name_ = (typename_) ::GetProcAddress(module, #name_); \    if(!dhw##name_) return PR_FALSE;    INIT_PROC(SYMINITIALIZEPROC, SymInitialize);    INIT_PROC(SYMSETOPTIONS, SymSetOptions);    INIT_PROC(SYMGETOPTIONS, SymGetOptions);    INIT_PROC(SYMGETMODULEINFO, SymGetModuleInfo);    INIT_PROC(SYMGETSYMFROMADDRPROC, SymGetSymFromAddr);    INIT_PROC(ENUMERATELOADEDMODULES, EnumerateLoadedModules);    INIT_PROC(IMAGEDIRECTORYENTRYTODATA, ImageDirectoryEntryToData);//    INIT_PROC(SYMGETLINEFROMADDR, SymGetLineFromAddr);//    INIT_PROC(SYMCLEANUPPROC, SymCleanup);//    INIT_PROC(STACKWALKPROC, StackWalk);//    INIT_PROC(SYMFUNCTIONTABLEACCESSPROC, SymFunctionTableAccess);//    INIT_PROC(SYMGETMODULEBASEPROC, SymGetModuleBase);//    INIT_PROC(SYMLOADMODULE, SymLoadModule);//    INIT_PROC(UNDECORATESYMBOLNAME, UnDecorateSymbolName);//    INIT_PROC(SYMUNDNAME, SymUnDName);#undef INIT_PROC    gInitialized = PR_TRUE;  }  return gInitialized;} 