自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(26)
  • 收藏
  • 关注

转载 epoll + multithreading implementation

http://www.cnblogs.com/iTsihang/archive/2013/05/23/3095775.html

2015-12-09 11:12:06 231

原创 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 781

转载 很好的汇编语言指南

下面这些知识对看crash dump很有用: http://www.cnblogs.com/awpatp/archive/2009/10/30/1593248.html http://www.cnblogs.com/awpatp/archive/2009/10/30/1593259.html http://www.cnblogs.com/awpatp/archive/2009/10/31

2015-06-18 10:41:50 334

原创 如何使用类成员函数指针

// 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 252

转载 Integrating LUA into C

http://www.codeproject.com/Articles/11508/Integrating-Lua-into-C Have to say: why don't we have such great tutorials in Chinese?

2015-05-29 11:29:08 268

转载 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 241

转载 虽然是面试题,但也可以作为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 419

原创 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 316

原创 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 461

转载 XML格式

这篇XML格式写的很好,比较系统,且易懂,推荐!

2014-12-01 14:28:58 333

转载 长连接与短连接

http://blog.163.com/zhaoxin851055@126/blog/static/8112929820122614212987/ 虽然client的流程图有一个错误,但总体上是很好的文章。

2014-11-27 15:45:08 269

转载 全面解读HTTP Cookie

全面解读HTTP Cookie 今天webryan给team做了一个关于HTTP cookie的分享,从各个方面给大家介绍一下大家耳熟能详的Cookie。主要是翻了维基百科的很多内容,因为维基百科的逻辑实在是很清晰:),ppt就不分享了,把原始的草稿贴出来给大家。欢迎批评指正。 HTTP Cookie: Cookie通常也叫做网站cookie,浏览器cookie或者http

2014-11-26 16:26:09 873

转载 cocos2d-x常用数学函数和宏

http://www.cnblogs.com/buaashine/archive/2012/11/12/2765691.html 注:有些函数和宏在3.

2014-11-19 09:16:05 272

转载 IOCP Client/Server Great Explanation & Implementation

http://www.codeproject.com/Articles/10330/A-simple-IOCP-Server-Client-Class

2014-11-13 16:23:43 366

转载 A Spinlock Implementation

http://www.codeproject.com/Articles/184046/Spin-Lock-in-C Note: There are valuable cotents in the comments

2014-11-13 15:31:14 259

转载 Spinlock and Semaphore

Spinlock and semaphore differ mainly in four things: 1. What they are A 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 470

转载 Spinlock VS. Mutex

The Theory In 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 379

转载 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 1241

转载 C++开发者都应该使用的10个C++11特性

http://developer.51cto.com/art/201307/405284.htm

2014-11-04 16:04:26 298

原创 Class Inheritance Grid

Inheritance

2014-10-20 16:10:35 313

转载 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 302

原创 calloc memory for variable _sharedBody in physics engine not freed in cocos2d-x 3.2

The method of cleaning: #if CC_USE_PHYSICS cpBody* shared = PhysicsShapeInfo::getSharedBody(); if( shared ) cpBodyFree( shared ); #endif

2014-09-17 09:31:38 350

原创 calloc memory for variable _sharedBody in physics engine not freed in cocos2d-x 3.2

#if CC_USE_PHYSICS cpBody* shared = PhysicsShapeInfo::getSharedBody(); if( shared ) cpBodyFree( shared ); #endif

2014-09-15 17:12:37 463

原创 cocos2d-x 3.2 windows在程序退出时对鼠标移动事件的处理可能造成内存泄漏

cocos文档里推荐的退出方法是调用Director::getInstance()->end(); 这个调用发生后退出的逻辑大概是: 1. Director内部标志_purgeDirectorInNextLoop置位 2. 下一个DisplayLinkDirector::mainloop()里调用purgeDirector()释放关闭一切 可是在Application::run

2014-08-27 15:47:56 556

原创 cocos android下调试C/C++ crash的方法

用ndk-stack: 控制台窗口输入命令行:adb

2014-08-15 16:58:39 546

原创 关于cocos2d-x v3.2的内存泄漏

cocos2d-x本身是没有内存泄漏的。主要的内存泄漏都是因为代码中使用了cocos studio库里的一些类和函数: 所有的WidgetReader派生类都是singleton,并且其purge函数没有被调用过,有些Readers连purge函数都仅仅是在头文件中定义却没有实现!按说purge函数应该是已经被cocos 3.0抛弃了的,应该都是destroyInstance的方式。大概

2014-08-15 11:30:29 527

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除