"真正的对象已被删除"在logcat中 [英] "The real object has been deleted" in logcat

查看:308
本文介绍了"真正的对象已被删除"在logcat中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题是previously问这里,但没有回答,而未能发现,说明这个问题在网络上的任何物品。

This question was previously asked Here, but not answered, And failed to find any article on the web that explains this issue.

我的应用程序工作正常,但在某些时候,当我 startActivityForResult 我看到
3日志 webcoreglue的:真正的对象已被删除

My app is working fine, but at some point when i startActivityForResult i see 3 logs of webcoreglue: The real object has been deleted.

现在据说我的应用程序是一切OK,到目前为止,我不知道为什么被记录此消息。

Now allegedly my app is all ok so far, and i have no idea what and why this message is being logged.

有人能解释为什么,当这种情况正在发生什么意思,以前我试图找出什么毛病我的应用程序?

Could someone explain why and when this is happening and what does it mean, before i try and find out what's wrong with my app?

编辑:
在更多的情况下的要求,我没有使用任何特殊的库,我认为,只有Facebok的SDK。

On the request for more context, i'm not using any special libs i think, only the Facebok SDK.

我当时的应用是有3个选项创建游戏的活动,邀请玩家从Facebook,通过用户名玩家邀请,并添加随机播放。

My app at the moment is a "Create game" activity which has 3 options, invite players from facebook, invite player by username and add random player.

从Facebook按钮邀请玩家打开一个ListActivity(对于结果)返回所有选择的球员。邀请用户打开对话框,其中的EditText和搜索用户数据的服务器。
所有选择的球员出现在主要活动里面一个ListView,所以加随机播放器只是增加了一个项目的列表视图。

The invite players from facebook button opens a ListActivity (for result) that returns all the players you select. invite user opens dialog box with EditText and searches the server for the user data. All the selected players appear in a ListView inside the main activity, so add random player just adds an item to that listview.

我相信的错误可能是,我使用在我尝试从ListActivity使用的主要活动静态字段。

I belive the error may be, that i'm using a static field in the main activity in which i try to use from the ListActivity.

在ListActivity获取包含其中包含3个ArrayList的形象,名称和ID的类Parcelable。
这parcable包含所有3种方法都选定用户。
希望这是足够的情况下,不知道我能说些什么,因为我不知道什么该日志是有关的线索。

the ListActivity gets a Parcelable that contains a class which contains 3 ArrayList of image,name and id. that parcable contains all the selected users from all 3 methods. Hope this is enough context, don't know what more can i say as i have no clue of what that log is related to.

编辑2:
又经过搜索foudn 这给了一个具体的解决方案TOA问题这个问题

推荐答案

东西出去的范围,它的析构函数被调用。搜索真正的对象已被删除。显示了屏幕旋转神器,只有特定的解决方案,覆盖了一些对象的析构函数的破解。这将是教育投入print语句在对象的析构函数,看看是获取调用时。

Something went out of scope and it's destructor was called. Search for "The real object has been deleted." showed only a specific solution for a screen rotation artifact and a hack for overriding some of the object destructors. It would be educational to put print statements in your object destructors to see what is getting called and when.

这篇关于"真正的对象已被删除"在logcat中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆