随笔 - 10, 文章 - 1, 评论 - 9, 引用 - 0
数据加载中……
c-y -> Ctrl + y
写的太好了,多谢啊
呵呵 尝试一下sourcecode 的安装方式@zuhd
re: Nginx、FCGI的安装与配置 Roger 2011-09-26 12:58
我的FCGI是用C++开发的也没有MYSQL的功能呵呵,自己裁剪了一下 @cheap lace front wigs
如果一次压缩几个文件要怎么办呢?
我的QQ:roger201008@qq.com
@求助啊
我在我的VS2003工程中用到TCMalloc,此功能有很多其他DLL模块.
出现2个问题:
1。 有些DLL模块在TCMall模块之前加载,并且分配了内存,此时不能被TCMalloc管理
2。 在进程退出时异常崩溃
出现在:(*invalid_free_fn)(ptr)
好像是地址无效了.
我猜想是:hook其他dll模块的函数,而此时的dll模块已经卸载了,因此此指针函数无效.
// This lets you call back to a given function pointer if ptr is invalid.
// It is used primarily by windows code which wants a specialized callback.
inline void do_free_with_callback(void* ptr, void (*invalid_free_fn)(void*)) {
if (ptr == NULL) return;
ASSERT(Static::pageheap() != NULL); // Should not call free() before malloc()
const PageID p = reinterpret_cast<uintptr_t>(ptr) >> kPageShift;
Span* span = NULL;
size_t cl = Static::pageheap()->GetSizeClassIfCached(p);

if (cl == 0) {
span = Static::pageheap()->GetDescriptor(p);
if (!span) {
// span can be NULL because the pointer passed in is invalid
// (not something returned by malloc or friends), or because the
// pointer was allocated with some other allocator besides
// tcmalloc. The latter can happen if tcmalloc is linked in via
// a dynamic library, but is not listed last on the link line.
// In that case, libraries after it on the link line will
// allocate with libc malloc, but free with tcmalloc's free.
(*invalid_free_fn)(ptr); // Decide how to handle the bad free request
return;
}
re: RTMP协议详解(三) roger 2010-03-03 16:39
good!期待第四期
re: MD5算法的C++实现 roger 2009-02-26 19:40
多谢楼主。这要是在美国,说不定楼主就发财了。
可以雇些律师,去告使用你code的人;)
re: MD5算法的C++实现 roger 2009-02-23 19:54
引用你的code,需要收费么?收的话收多少?
GetPrivateProfileString 读出现失败,为什么?如何解决!
re: MD5算法的C++实现 roger 2009-01-29 15:27
很多地方都看到了这篇文章,只不过你这里多了个make文件。。。。
请问楼主这里是原创么?
谢谢
re: OpenGL的视图变换 roger 2007-10-21 23:48
好像有点小错误,“它都蕴含着一个局部坐标系信息:以右边坐标系为参考坐标系统,左边坐标系的位置和方向。”
P=MP',设P是O系坐标,P'是O'系坐标, 那么,按照上述结论,以O‘系为参考,O坐标系的描述为M。那么带入P=MP',有:
I=MM

这是错误的。

其实:设S为O系下O‘系的坐标,那么有:
O系下O‘系的描述=M*O’系下O‘系的描述,即:
S=M*I
S=M
所以M是O系下O‘系的坐标,即左边坐标系下,右边坐标系的坐标。

比如,O系下O'系的原点在(3,0,0)’处,那么有:
M=
1003
0100
0010
0001

假设O‘系中有一个点(3,0,0,1)‘,那么,O系中,它在:
M*P‘=(6,0,0,0)
和好的文章。


--
寻找自动同道会的人。
P2P 开发,百万在线系统开发。
MSN:lxp8@sina.com
re: 清除winlogon病毒 roger 2006-08-13 19:20
我的最后一步,删除 %windir%\debug 时,有一个叫"PASSWD.LOG"的文件删除不掉,何故?
re: 清除winlogon病毒 roger 2006-08-13 19:17
谢了,哦!
re: 从全局变量到IOC模式 Roger 2006-05-17 10:12
写得不错
不过spring用xml来配置带来了一个不方便的地方,就是没办法进行重构,xml hell.