错误:线程附加失败 [英] ERROR: thread attach failed

查看:156
本文介绍了错误:线程附加失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行时收到此下面的错误。

I am getting this following error during run time.

ERROR: thread attach failed

我的项目包含在SRC两个类的休耕:

My project contains two classes in src as fallowing:


  1. Activity类

  2. video_thread类

我创建了一个对象在Activity类此video_thread类,使其守护进程,并开始像这样:

I've created an object for this video_thread class in Activity class, made it Daemon and started it like this:

video_thread v=new video_thread();
video_thraed.setDaemon(true);
video_thread.start();

在执行过程中我发现在logcat的这个错误。

During execution i am finding this error in the logcat.

推荐答案

我相信这是原因,因为你的应用程序被关闭,而该线程试图创建。见的http://groups.google.com/group/android-developers/browse_thread/thread/addd2a507ea8b166

I believe this is cause because you application is shutting down whilst the thread is trying to be created. See http://groups.google.com/group/android-developers/browse_thread/thread/addd2a507ea8b166

您应该尝试找出原因,同时正在创建线程的应用程序退出。

You should try figure out why your application is exiting whilst the thread is being created.

这篇关于错误:线程附加失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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