- 博客(26)
- 收藏
- 关注
转载 epoll + multithreading implementation
http://www.cnblogs.com/iTsihang/archive/2013/05/23/3095775.html
2015-12-09 11:12:06
270
原创 Win7开发环境看XP的crash dump加载msvcr80.dll符号文件失败的解决方法
原因:XP下msvcr80.dll系统的系统缺省路径是“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.nnnn_x-ww_e6967989\msvcr80.dll”。WIN7下msvcr80.dll系统的系统缺省的路径是“C:\WINDOWS\WinSxS\x86_Microsoft.VC80.CRT
2015-06-30 13:43:50
847
转载 很好的汇编语言指南
下面这些知识对看crash dump很有用:http://www.cnblogs.com/awpatp/archive/2009/10/30/1593248.htmlhttp://www.cnblogs.com/awpatp/archive/2009/10/30/1593259.htmlhttp://www.cnblogs.com/awpatp/archive/2009/10/31
2015-06-18 10:41:50
375
原创 如何使用类成员函数指针
// note:// all the codes below are working in Visual Studio 2012// need to check on other compilers since the rules may different from VS class VA { public: VA(void) {} ~VA(
2015-05-29 15:04:03
288
转载 Integrating LUA into C
http://www.codeproject.com/Articles/11508/Integrating-Lua-into-CHave to say: why don't we have such great tutorials in Chinese?
2015-05-29 11:29:08
309
转载 Some good ideas about the interacting between C++ and LUA
Some good ideas about the interacting between C++ and LUA:http://www.gamedev.net/topic/631280-lua-integration-into-a-game/Be patient and read along the thread, I'm sure you gonna get something use
2015-05-29 11:18:32
268
转载 虽然是面试题,但也可以作为C++知识的速查
http://blog.csdn.net/btooth/article/details/994880想成为嵌入式程序员应知道的0x10个基本问题:预处理器(Preprocessor)1 . 用预处理指令#define 声明一个常数,用以表明1年中有多少秒(忽略闰年问题) #define SECONDS_PER_YEAR (60 * 60 * 24 *
2015-05-25 11:19:48
468
原创 STL reverse_iterator inside
看MSDN关于rbegin和rend的描述时,会理解rbegin()返回的是指向容器的最后一个元素的iterator,而rend()返回的是指向容器第一个元素“左侧”的一个无效元素。例如:std::vector test;test.push_back(1);test.push_back(2);std::vector::reverse_iterator rit_b = test.
2015-01-06 17:12:41
344
原创 tinyxml2 in android
data files packed in the apk cannot be read out directly through standard file operations in android. has to use FileUtils to load the file into memory first, then use XMLDocument::parse() to retrie
2014-12-11 11:24:54
521
转载 长连接与短连接
http://blog.163.com/zhaoxin851055@126/blog/static/8112929820122614212987/虽然client的流程图有一个错误,但总体上是很好的文章。
2014-11-27 15:45:08
303
转载 全面解读HTTP Cookie
全面解读HTTP Cookie今天webryan给team做了一个关于HTTP cookie的分享,从各个方面给大家介绍一下大家耳熟能详的Cookie。主要是翻了维基百科的很多内容,因为维基百科的逻辑实在是很清晰:),ppt就不分享了,把原始的草稿贴出来给大家。欢迎批评指正。HTTP Cookie:Cookie通常也叫做网站cookie,浏览器cookie或者http
2014-11-26 16:26:09
930
转载 cocos2d-x常用数学函数和宏
http://www.cnblogs.com/buaashine/archive/2012/11/12/2765691.html注:有些函数和宏在3.
2014-11-19 09:16:05
312
转载 IOCP Client/Server Great Explanation & Implementation
http://www.codeproject.com/Articles/10330/A-simple-IOCP-Server-Client-Class
2014-11-13 16:23:43
406
转载 A Spinlock Implementation
http://www.codeproject.com/Articles/184046/Spin-Lock-in-CNote: There are valuable cotents in the comments
2014-11-13 15:31:14
286
转载 Spinlock and Semaphore
Spinlock and semaphore differ mainly in four things:1. What they areA spinlock is one possible implementation of a lock, namely one that is implemented by busy waiting ("spinning"). A semaphore
2014-11-13 14:14:46
508
转载 Spinlock VS. Mutex
The TheoryIn theory, when a thread tries to lock a mutex and it does not succeed, because the mutex is already locked, it will go to sleep, immediately allowing another thread to run. It will cont
2014-11-13 12:38:00
412
转载 How to support multithread in cocos2dx
Usually, an application is separated into two parts: foreground and backgroud, where foreground is charge of drawing UI and doing UI flow controlling, backgroud is responsible for processing data logi
2014-11-10 14:22:57
1291
转载 c++ operator重载的例子
#include using namespace std;class A{public: A(double _data = 0.0):data(_data){} A& operator = (const A& rhs) { data = rhs.data; re
2014-10-20 11:52:36
332
原创 calloc memory for variable _sharedBody in physics engine not freed in cocos2d-x 3.2
The method of cleaning:#if CC_USE_PHYSICScpBody* shared = PhysicsShapeInfo::getSharedBody();if( shared )cpBodyFree( shared );#endif
2014-09-17 09:31:38
382
原创 calloc memory for variable _sharedBody in physics engine not freed in cocos2d-x 3.2
#if CC_USE_PHYSICScpBody* shared = PhysicsShapeInfo::getSharedBody();if( shared )cpBodyFree( shared );#endif
2014-09-15 17:12:37
499
原创 cocos2d-x 3.2 windows在程序退出时对鼠标移动事件的处理可能造成内存泄漏
cocos文档里推荐的退出方法是调用Director::getInstance()->end();这个调用发生后退出的逻辑大概是:1. Director内部标志_purgeDirectorInNextLoop置位2. 下一个DisplayLinkDirector::mainloop()里调用purgeDirector()释放关闭一切可是在Application::run
2014-08-27 15:47:56
608
原创 关于cocos2d-x v3.2的内存泄漏
cocos2d-x本身是没有内存泄漏的。主要的内存泄漏都是因为代码中使用了cocos studio库里的一些类和函数:所有的WidgetReader派生类都是singleton,并且其purge函数没有被调用过,有些Readers连purge函数都仅仅是在头文件中定义却没有实现!按说purge函数应该是已经被cocos 3.0抛弃了的,应该都是destroyInstance的方式。大概
2014-08-15 11:30:29
589
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅