re: C和C++之間庫的互相調用[未登錄] roger 2012-03-24 23:10
寫的太好了,多謝啊
re: 詳盡的Mysql安裝過程 講解 Roger 2011-10-09 13:50
呵呵 嘗試一下sourcecode 的安裝方式@zuhd
re: Nginx、FCGI的安裝與配置 Roger 2011-09-26 12:58
我的FCGI是用C++開發的也沒有MYSQL的功能呵呵,自己裁剪了一下 @cheap lace front wigs
re: 推薦一個跨平臺內存分配器 Roger 2010-09-17 21:03
我的QQ:roger201008@qq.com
re: 推薦一個跨平臺內存分配器 Roger 2010-09-17 21:03
@求助啊
我在我的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,需要收費么?收的話收多少?
re: 簡單好用的讀寫ini文件的類 roger 2009-02-18 20:51
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.