随笔分类 -  Windows

摘要:Electron因为开启了node集成才能实现和网页的通信,引入jQuery较高版本它的模块化定义(基于CommonJS)和Electron的内部机制冲突了。目前提供以下两个方案: 1、使用jQuery 1.8.2版本,更高版本还没有测试。 2、添加下面的代码以后,再引入jQuery的高版本。 阅读全文
posted @ 2019-09-26 18:34 junchu25 阅读(1176) 评论(0) 推荐(0) 编辑
摘要:近期用户反馈某台服务器总感觉性能不是很好存在卡顿,于是今天远程上去分析。 打开任务管理器发现CPU使用率非常低,内存使用也在接受范围内(10/64G)。不过我有一个偏好就是不喜欢用系统自带的任务管理器查看资源,顺手把procexp搞上去再看一遍。发现rundll32.exe显示占用了62%左右的CP 阅读全文
posted @ 2018-07-31 16:50 junchu25 阅读(1468) 评论(1) 推荐(0) 编辑
摘要:近期安装Windows 10 RedStone 2的14965、14971会出现停留在23%或者24%的现象,解决办法是拔掉扩展的SD卡再重新安装。 阅读全文
posted @ 2016-11-21 18:44 junchu25 阅读(374) 评论(0) 推荐(0) 编辑
摘要:本人使用XPS 15 9530、集成显卡为Intel HD Graphics 4600、操作系统Windows 10 Pro,使用过程当中经常会发生集成显卡奔溃的问题,错误提示如下: 由于XPS 15使用的集成显卡为厂商定制版本,不建议绕过限制升级Intel发布的对应驱动。实际使用过程中发现在运行C 阅读全文
posted @ 2016-03-24 16:04 junchu25 阅读(1495) 评论(0) 推荐(0) 编辑
摘要:Weather动态磁贴显示Washington(不知是否和我的region设置有关系),打开应用却停留在输入需要搜索的天气。根据提示输入"Shanghai, China"并单击搜索始终没有任何响应,同时确认Location相关设置都已打开。Cortana可以正常显示我所在城市的天气。下面是我的解决方... 阅读全文
posted @ 2015-07-20 10:47 junchu25 阅读(532) 评论(0) 推荐(0) 编辑
摘要:重新安装Windows Server 2012 R2,把原来SSD分区全部格式化重建,用U盘启动安装时提示如下:"Setup was unable to create a new system partition or locate an existing system partition. See... 阅读全文
posted @ 2014-12-22 17:38 junchu25 阅读(828) 评论(0) 推荐(0) 编辑
摘要:最近两天莫名其妙连接不上VPN,比较奇怪的是同时3台PC出现同样问题,连接时提示:Error 789: The L2TP connection attempt failed because the security layer encountered a processing error durin... 阅读全文
posted @ 2014-12-19 21:27 junchu25 阅读(1751) 评论(0) 推荐(0) 编辑
摘要:2012升级R2过程中强制关闭了计算机,导致再次启动后蓝屏提示"BAD_SYSTEM_CONFIG_INFO"。用2012安装盘进入尝试修复失败(安全模式什么的都不用想),进入命令提示符查看错误日志发现是由注册表意外损坏引起。由于Windows在升级时会对原有注册表进行备份,可以在对应操作系统盘符+... 阅读全文
posted @ 2014-12-11 04:16 junchu25 阅读(19307) 评论(0) 推荐(0) 编辑
摘要:默认Attach to选择了Automatically determine the type of code to debug,显示Native Code。但附加进程到iexplore.exe断点无法命中。解决方法是手动选择Code Type Natvie。 阅读全文
posted @ 2014-10-23 14:34 junchu25 阅读(1010) 评论(0) 推荐(0) 编辑
摘要:两个项目libevent、memcached,Platform Toolset使用Visual Studio 2013 - Windows XP (v120_xp)。在编译memcached时会提示"inet_pton redefinition"。打开项目下的win32.h,将inet_pton函数... 阅读全文
posted @ 2014-05-13 16:12 junchu25 阅读(767) 评论(0) 推荐(0) 编辑
摘要:当前文档可能是Mail Merge Letter type document,MAILINGS -> Start Mail Merge -> Normal Word Document保存即可。 阅读全文
posted @ 2014-04-23 22:08 junchu25 阅读(251) 评论(0) 推荐(0) 编辑
摘要:1、创建一个Visual C++的Empty Project,如果需要支持Windows XP将Platform Toolset设置为Visual Studio 2013 - Windows XP (v120_xp)。2、Configuration Type设置为Dynamic Library (.... 阅读全文
posted @ 2014-03-26 18:23 junchu25 阅读(4323) 评论(0) 推荐(0) 编辑
摘要:Windows Server 2012 + Hyper-V调试Windows XP SP3 32-bit虚拟机。1、Hyper-V选中虚拟机,设置COM port,Named pipe定义一个名字。例如:com_1。2、访问虚拟机,cmd输入msconfig修改boot.ini。高级选项(设置需要一一对应):1)/DEBUG2)/DEBUGPORT=COM13)/BAUDRATE=1152003、重启虚拟机,并打开Debugging Host的WinDbg。选择Kernel Debugging,在COM选项卡输入对应参数,开始进行调试。 阅读全文
posted @ 2014-03-25 18:28 junchu25 阅读(601) 评论(0) 推荐(0) 编辑
摘要:Debugging Target:Windows XP SP3 32-bitDebugging Host:Windows Server 2012 64-bit当附加到目标服务器某个进程后,WinDbg x86(6.11.1.404)提示:unable to initialize target machine information win32 error 0n87这是一个旧版本已知的bug,更新WinDbg版本即可(具体在哪一个版本修复并不清楚,我使用Windows SDK 8.0自带的6.2.9200.16384版本)。 阅读全文
posted @ 2014-03-25 15:17 junchu25 阅读(4395) 评论(0) 推荐(0) 编辑
摘要:开发一个COM组件在Windows 7上注册成功,但是Windows XP SP3版本却导致regsvr32.exe进程挂起。用WinDbg查看发现提示:Break-in sent, waiting 30 seconds...WARNING: Break-in timed out, suspending. This is usually caused by another thread holding the loader lock竟然出现了加载锁,kb查看call stack:0:000> kbChildEBP RetAddr Args to Child ... 阅读全文
posted @ 2014-03-20 21:05 junchu25 阅读(1686) 评论(0) 推荐(0) 编辑
摘要:之前的一篇博客如何在Computer下添加System Folder里提到需要每次都使用一个新的guid,否则再次在"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace"下添加该键无法在Windows Explorer看到它。这个例子参考了Windows SDK部分内容,但是它不够完美无法为相应的文件夹添加一些额外的功能,且每次需要一个新的guid。下面给出一个更优化的方式:1、这个操作需要在三个注册表键下添加相同的内容:"HKEY_C 阅读全文
posted @ 2014-01-18 10:35 junchu25 阅读(890) 评论(4) 推荐(0) 编辑
摘要:当应用程序中调用TerminateProcess函数,对于在DllMain函数中处理DLL_PROCESS_DETACH的额外代码操作是无法被执行的。比如:释放资源、数据持久化等。 阅读全文
posted @ 2014-01-13 00:45 junchu25 阅读(613) 评论(0) 推荐(0) 编辑
摘要:1、注册自定义的UnhandledExceptionFilter,C/C++ Runtime Library下需要注意自定义handler被移除(hook kernel32.dll的SetUnhandledExceptionFilter使它返回一个空指针即可)。PTOP_LEVEL_EXCEPTION_FILTER v_prevUnhandledExceptionFilter;LONG WINAPI UnhandledExceptionHandler(EXCEPTION_POINTERS* ExceptionInfo);v_prevUnhandledExceptionFilter = :... 阅读全文
posted @ 2014-01-10 19:56 junchu25 阅读(713) 评论(0) 推荐(0) 编辑
摘要:调用sqlite3_open函数默认创建的数据库encoding=UTF-8,执行sqlite3_exec时需要将对应的字符串转换为UTF-8格式多字节字符串。比如:sqlite3* db;auto retVal = sqlite3_open("test.db", &db);char* pErrMsg;auto sql = "create table users(userid varchar(20) PRIMARY KEY, name varchar(50), age int, birthday datetime);";retVal = sqli 阅读全文
posted @ 2013-11-15 13:35 junchu25 阅读(11846) 评论(0) 推荐(0) 编辑
摘要:由于需要sqlite的x64版本只能自己编译,下载sqlite源代码、sqlite.def。Visual Studio 2013新建一个Visual C++ Empty Project,Configuration Type设置为Dynamic Library (.dll)。Linker -> Inp... 阅读全文
posted @ 2013-11-14 00:17 junchu25 阅读(1451) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示