上一页 1 ··· 6 7 8 9 10 11 下一页

2014年2月11日

va_list

摘要: void Log( const TCHAR *pszFormat, ... ){ TCHAR buf[1024] ; va_list arglist ; try { _tcscpy_s ( buf, 1023, _T("\... 阅读全文

posted @ 2014-02-11 16:43 偏爱省略号 阅读(379) 评论(0) 推荐(0) 编辑

Event log c++ sample.

摘要: 1. Init regedit.bool InitLog( TCHAR *logName, TCHAR *sourceName, TCHAR *MessageDllName ) { // This number of categories for the event source. DWORD dwCategoryNum = 1; HKEY hk; DWORD dwData, dwDisp; TCHAR szBuf[MAX_PATH]; size_t cchSize = MAX_PATH; ... 阅读全文

posted @ 2014-02-11 15:55 偏爱省略号 阅读(698) 评论(0) 推荐(0) 编辑

EVENT LOGGING

摘要: 1.EVENT LOGGING概述当错误发生时,系统管理员或技术支持需要知道错误原因是什么,如何恢复丢失数据和阻止错误复现。WINDOWS的Event-logging服务为此提供了解决方案。应用程序,操作系统或其它系统服务可以向该服务记录重要的事件消息,如:磁盘空间不足、没有访问权限等。系统管理员可以通过这些消息来确定错误发生的原因以及发生的上下文环境。通过定期的查看这些日志还可以帮助管理员在系统造成大的破坏前发现问题。Event-logging服务是随着WINDOWS系统的启动而被默认启动的,但可以通过服务控制面板停止该服务。Windows for Workgroups、Windows NT 阅读全文

posted @ 2014-02-11 14:47 偏爱省略号 阅读(1635) 评论(0) 推荐(0) 编辑

2014年1月28日

Analyze Program Runtime Stack

摘要: Introduce:Process Explorer is an advanced process management utility that picks up where Task Manager leaves off. It will show you detailed information about a process including its icon, command-line, full image path, memory statistics, user account, security attributes, and more. When you zoom in 阅读全文

posted @ 2014-01-28 15:43 偏爱省略号 阅读(264) 评论(0) 推荐(0) 编辑

unknow table alarmtemp error when drop database (mysql)

摘要: Q:unknow table alarmtemp error when drop database (mysql)D: alarmtemp is table in rtmd database.A:truncate rtmd maybe help.drop table for each ?try remove dababase files (D:\MySQL\data\rtmd) if daba is not necessary. 阅读全文

posted @ 2014-01-28 13:21 偏爱省略号 阅读(260) 评论(0) 推荐(0) 编辑

2014年1月27日

This application has request the Runtime to terminate it in an unusual way.

摘要: Q: CertsMV.exe gui popup two dialogs as follow.A:测试发现是分配内存导致,频繁分配内存(大约6M)可能是堆管理导致 分配大内存分配失败,程序未对 malloc 返回做检测导致后续的memset ,memcpy 脏数据,系统的异常处理抛出错误提示框(windows默认处理)错误提示堆栈 阅读全文

posted @ 2014-01-27 21:46 偏爱省略号 阅读(1151) 评论(0) 推荐(0) 编辑

How to check if Visual Studio 2005 SP1 is installed

摘要: How to check if Visual Studio 2005 SP1 is installedCheck the following registry key. HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DevDiv\VS\Servicing\8.0 Check if the SP value is 1.Check your Visual Studio version from the Help > About menu is set to Version 8.0.50727.762 vs2005 sp1补丁微软网站. 下载地址1为:htt... 阅读全文

posted @ 2014-01-27 21:38 偏爱省略号 阅读(318) 评论(0) 推荐(0) 编辑

SetUnhandledExceptionFilter

摘要: SetUnhandledExceptionFilter 设置未捕获异常处理通常windows程序长时间运行,会发生各种问题,例如访问异常,内存溢出,堆栈破坏等。这时候通常希望程序自己能增加处理,而不是依靠系统弹出错误提示框(灰常不友好).//For proc exception LONG WINAPI ExpFilter(struct _EXCEPTION_POINTERS *pExp) { ACE_DEBUG((LM_ERROR, "Exception code : %X, address: %x Exit!\n", pExp->ExceptionRecord-&g 阅读全文

posted @ 2014-01-27 21:18 偏爱省略号 阅读(1451) 评论(0) 推荐(0) 编辑

2014年1月25日

error LNK2001: unresolved external symbol __imp___time64

摘要: Q: vs2005 generate a static lib(libva.lib), used in vc++6.0, error LNK2001: unresolved external symbol __imp___time64T: time64 is a function in time.h .In vs2005 static lib, find a call . info.time = time(NULL);can not findtime64 symbol in libva.lib (use libDump tool)A: 阅读全文

posted @ 2014-01-25 16:39 偏爱省略号 阅读(1494) 评论(1) 推荐(0) 编辑

error LNK2001: unresolved external symbol ___CxxFrameHandler3

摘要: Q: VS2005编译的静态库, 在vc++6.0中连接出现错误 error LNK2001: unresolved external symbol ___CxxFrameHandler3A: vs2005, c/C++ Code generation ->enable c++ exceptions->NO 阅读全文

posted @ 2014-01-25 13:12 偏爱省略号 阅读(1440) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 下一页

导航