2010-11-03 84 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

相关问题