03 2012 档案

change android wifi device name
摘要:root and run following$ su# getprop net.hostname# setprop net.hostname whateveryouwantwhere 'whateveryouwant' is the hostname you want.done. 阅读全文

posted @ 2012-03-25 13:00 无法显示此网页 阅读(222) 评论(0) 推荐(0)

c# instantly kill thread with TerminateThread (danger)
摘要:Danger: dead lock or mem leakuse only as Process.Kill() to exit app with defined exit code [DllImport("kernel32.dll")]staticexternboolTerminateThread(inthThread,uintdwExitCode);//[STAThread]staticvoidMain(string[]args){try{Threadt=newThread(()=>{//codeeveninterop});t.IsBackground=true;/ 阅读全文

posted @ 2012-03-14 11:55 无法显示此网页 阅读(759) 评论(0) 推荐(1)

NullReferenceException when call CallNextHookEx in multi-Thread app
摘要:SetWindowsHookEx(WH_MOUSE_LL, mousehookDelegate, intptr, 0)在这里用了一个实例代理没有用匿名,HookProcmousehookDelegate = new HookProc(MouseHookProc);SetWindowsHookEx(WH_MOUSE_LL,MouseHookProc, intptr, 0); 然后在Control.Invoke() 调用。貌似运行了好一会也没有碰到异常了 阅读全文

posted @ 2012-03-09 17:16 无法显示此网页 阅读(281) 评论(0) 推荐(0)

导航