re: 詳盡的Mysql安裝過程 講解 Roger 2011-10-09 13:50
呵呵 嘗試一下sourcecode 的安裝方式@zuhd
re: Nginx、FCGI的安裝與配置 Roger 2011-09-26 12:58
我的FCGI是用C++開發(fā)的也沒有MYSQL的功能呵呵,自己裁剪了一下 @cheap lace front wigs
@求助啊
我在我的VS2003工程中用到TCMalloc,此功能有很多其他DLL模塊.
出現(xiàn)2個(gè)問題:
1。 有些DLL模塊在TCMall模塊之前加載,并且分配了內(nèi)存,此時(shí)不能被TCMalloc管理
2。 在進(jìn)程退出時(shí)異常崩潰
出現(xiàn)在:(*invalid_free_fn)(ptr)
好像是地址無效了.
我猜想是:hook其他dll模塊的函數(shù),而此時(shí)的dll模塊已經(jīng)卸載了,因此此指針函數(shù)無效.
// 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協(xié)議詳解(三) roger 2010-03-03 16:39
good!期待第四期
多謝樓主。這要是在美國,說不定樓主就發(fā)財(cái)了。
可以雇些律師,去告使用你code的人;)
引用你的code,需要收費(fèi)么?收的話收多少?
GetPrivateProfileString 讀出現(xiàn)失敗,為什么?如何解決!
很多地方都看到了這篇文章,只不過你這里多了個(gè)make文件。。。。
請(qǐng)問樓主這里是原創(chuàng)么?
謝謝
re: OpenGL的視圖變換 roger 2007-10-21 23:48
好像有點(diǎn)小錯(cuò)誤,“它都蘊(yùn)含著一個(gè)局部坐標(biāo)系信息:以右邊坐標(biāo)系為參考坐標(biāo)系統(tǒng),左邊坐標(biāo)系的位置和方向。”
P=MP',設(shè)P是O系坐標(biāo),P'是O'系坐標(biāo), 那么,按照上述結(jié)論,以O(shè)‘系為參考,O坐標(biāo)系的描述為M。那么帶入P=MP',有:
I=MM
這是錯(cuò)誤的。
其實(shí):設(shè)S為O系下O‘系的坐標(biāo),那么有:
O系下O‘系的描述=M*O’系下O‘系的描述,即:
S=M*I
S=M
所以M是O系下O‘系的坐標(biāo),即左邊坐標(biāo)系下,右邊坐標(biāo)系的坐標(biāo)。
比如,O系下O'系的原點(diǎn)在(3,0,0)’處,那么有:
M=
1003
0100
0010
0001
假設(shè)O‘系中有一個(gè)點(diǎn)(3,0,0,1)‘,那么,O系中,它在:
M*P‘=(6,0,0,0)
和好的文章。
--
尋找自動(dòng)同道會(huì)的人。
P2P 開發(fā),百萬在線系統(tǒng)開發(fā)。
MSN:lxp8@sina.com
re: 清除winlogon病毒 roger 2006-08-13 19:20
我的最后一步,刪除 %windir%\debug 時(shí),有一個(gè)叫"PASSWD.LOG"的文件刪除不掉,何故?
re: 清除winlogon病毒 roger 2006-08-13 19:17
謝了,哦!
re: 從全局變量到IOC模式 Roger 2006-05-17 10:12
寫得不錯(cuò)
不過spring用xml來配置帶來了一個(gè)不方便的地方,就是沒辦法進(jìn)行重構(gòu),xml hell.