2010-11-03 82 views
1

我正在嘗試編寫一個將聯繫人添加到我的Android手機AddressBook的例程。我得到以下例外:從聯繫人中讀取時出現異常

D/dalvikvm( 784): GC freed 2736 objects/171696 bytes in 71ms 
E/IMemory ( 784): binder=0x5b5248 transaction failed fd=-2147483647, size=0, err=-2147483646 (Unknown error: 2147483646) 
E/IMemory ( 784): cannot dup fd=-2147483647, size=0, err=-2147483646 (Bad file number) 
E/IMemory ( 784): cannot map BpMemoryHeap (binder=0x5b5248), size=0, fd=-1 (Bad file number) 
E/JavaBinder( 784): *** Uncaught remote exception! (Exceptions are not yet supported across processes.) 
E/JavaBinder( 784): java.lang.RuntimeException: No memory in memObj 
E/JavaBinder( 784): at android.database.CursorWindow.native_init(Native Method) 
E/JavaBinder( 784): at android.database.CursorWindow.<init>(CursorWindow.java:518) 
E/JavaBinder( 784): at android.database.CursorWindow.<init>(CursorWindow.java:27) 
E/JavaBinder( 784): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:493) 
E/JavaBinder( 784): at android.database.CursorWindow$1.createFromParcel(CursorWindow.java:496) 
E/JavaBinder( 784): at android.content.ContentProviderNative.onTransact(ContentProviderNative.java:96) 
E/JavaBinder( 784): at android.os.Binder.execTransact(Binder.java:287) 
E/JavaBinder( 784): at dalvik.system.NativeStart.run(Native Method) 

任何人都可以詳細說明上述日誌是什麼意思?

+0

請注意pid:784是聯繫人聚合的進程ID。 – 2010-11-03 12:57:26

+0

您如何確定聯繫人聚合的pid? – mobibob 2011-04-21 16:51:38

+0

我將日誌追溯到ddms中的原點。 – 2011-04-21 17:39:50

回答

0

我只是在我的應用程序解決此問題。問題是關閉遊標,如果你發佈你的代碼,我可以糾正它。

Marius

+0

嗨馬呂斯..謝謝你的回覆。我後來想到了這一點,並已經做出了改變。 – 2011-07-27 17:03:04

相關問題