11/22/2009

My Firefox on Win7 keep crashing

My working pc recently update to windows 7 and every seems runs very well except my favorite firefox. it keeps crashing. Orz... because usage influence people's working efficiency, switching ie and firefox (to avoid crashing on firefox) lower my interest in working.

therefore, when i can't stand this annoying problem any more, i decided to find the problem (what a good habit of an engineer ... lazy XD). I found the NPSWF32.dll which decode flash clips leads the problem. the following is the dump message:

Executable search path is:
Windows 7 Version 7600 MP (2 procs) Free x86 compatible
Product: WinNt, suite: SingleUserTS
Debug session time: Mon Nov 23 09:31:38.000 2009 (GMT+8)
System Uptime: not available
Process Uptime: 0 days 0:00:41.000
...................................................................................................................
This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(ed8.11a4): Access violation - code c0000005 (first/second chance not available)
eax=001dde34 ebx=00000000 ecx=001ddc17 edx=772f64f4 esi=000000d4 edi=00000000
eip=772f64f4 esp=001ddba8 ebp=001ddc14 iopl=0 nv up ei pl zr na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00240246
ntdll!KiFastSystemCallRet:
772f64f4 c3 ret
0:000> .ecxr
eax=0e55a088 ebx=0000000c ecx=00000000 edx=00000080 esi=001de1ec edi=001de204
eip=6459ff60 esp=001de134 ebp=0e5ca800 iopl=0 nv up ei pl nz na po nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00250202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for NPSWF32.dll -
NPSWF32!native_ShockwaveFlash_TCallLabel+0xa4c2a:
6459ff60 8b4158 mov eax,dword ptr [ecx+58h] ds:0023:00000058=????????


as you could see, the ShockwareFlash is clear and obviously showing there, that is, the mruderer. I totally have no idea what is happening about the flash decoder. after i installed ff extension flash block, the world become beautiful again XD. if you meet the the problme as i met, you might try to block the flash on your firefox.

ps: i have 2 pc installed windows 7, but the flash on my home pc works very well, therefore, i can't get the idea of this problem.

11/12/2009

[Android] Installation Guide

1. Download and install JRE
  URL: http://java.com/zh_TW/download/manual.jsp
  Adding C:\Program Files\Java\jre6\bin to environment variable PATH

2. Download and unpack Eclipse
  URL: http://www.eclipse.org/downloads/

3. Download and unpack Android SDK
  URL: http://developer.android.com/intl/zh-TW/sdk/index.html

4. Execute Eclipse
  Refer to this page: http://developer.android.com/intl/zh-TW/sdk/eclipse-adt.html to install Android DDMS and Android Development Tools

5. Setup SDK
  Go to Window->Preference->Android to setup SDK Location
  Go to Window->Android SDK and AVD Manager->Available Packages to install selected SDK Platforms
  Go to Window->Android SDK and AVD Manager->Virtual Devices to new a Android Virtual Device


  

11/09/2009

[Java] Set HttpClient Timeout

HttpParams httpParams = new BasicHttpParams();
HttpConnectionParams.setConnectionTimeout(httpParams, timeout); /// timeout is in millisecond
HttpConnectionParams.setSoTimeout(httpParams, timeout);
HttpClient client = new DefaultHttpClient(httpParams);