
windows
文章平均质量分 52
newmandirl
这个作者很懒,什么都没留下…
展开
-
windows 少数线程并发 监听多个目录
windows上用少数线程并发监听多个目录变化原创 2017-12-20 10:16:54 · 535 阅读 · 0 评论 -
multithread and static instances inside dll/dylib
In macosx, it seems that subthreads won't terminate until after any function which is registered to the api atexit is done. see this: https://blog.youkuaiyun.com/newmandirl/article/details/80079989When you'...原创 2018-04-25 18:10:37 · 190 阅读 · 0 评论 -
macosx about atexit and subthreads
you can use the api atexit to register when the thread is going to exit, the api is from stdlib.h.1.here is personal thoughts after some test and debug:When main-thread executing atexit, other subthre...原创 2018-04-25 16:33:28 · 192 阅读 · 0 评论 -
qthreadstorage(encapsulation by yunthreadlocal)
strange things:using qt4.8.4 static lib, it will crash when:~yunthreadlocal() { m_qthread_storage.setLocalData(NULL);// crash here}if use qt4.8.4 dynamic lib, it won't.reason: to be continued...原创 2018-04-25 15:24:14 · 321 阅读 · 0 评论 -
what is -fno-elide-constructors and how to use in cmake
about -fno-elide-constructors:https://blog.youkuaiyun.com/XiyouLinux_Kangyijie/article/details/78939291https://www.cnblogs.com/xkfz007/archive/2012/07/21/2602110.htmlhow to use in cmake:SET(CMAKE_CXX_FLAGS ...原创 2018-04-19 11:58:40 · 834 阅读 · 0 评论 -
office add-in deploy guide
https://www.add-in-express.com/docs/net-deploy-office-addin.phpit not only guide you how to deploy your office-addin, but also show you the difference of 3 ways of deployment.this is king of good!原创 2018-04-12 18:33:53 · 178 阅读 · 0 评论 -
solution:office2007(lack of some patch) installed addIns(for all users on a machine), but not loaded
read from this article:https://blogs.msdn.microsoft.com/vsto/2010/03/08/deploying-your-vsto-add-ins-to-all-users-saurabh-bhatia/we found the saying:A recent hotfix (KB976811 available through KB976477...原创 2018-04-12 16:59:51 · 439 阅读 · 0 评论 -
getQueuedCompletionStatus或ReadDirectoryChanged 会在某个时刻修改overlap?导致free heap block modified at after i
伪代码:class WatchInfo { OVERLAPPED overLapped; }ReadDirectoryChanged会传watchInfo的overlapped地址;getQueuedCompletionStatus传入一OVERLAPPED指针,函数返回后该指针可能会被赋值(目前还没用到这个);而ReadDirectoryChanged和getQueuedComp原创 2018-01-24 14:31:41 · 362 阅读 · 0 评论 -
todo: using dll by 'Implicit Linking' or 'Explicit Linking'
In my c++ project under windows, I've seen a CRASH!Why will ~weak_ptr() crash in a dll?Here is my project:App.exe Parent.dll Child1.dllThere is a codes:Parent.dllvoid setSomeInfosToChild(...原创 2018-05-26 11:17:14 · 244 阅读 · 0 评论