Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

线程阻塞的问题 #14

Closed
ghost opened this issue Sep 26, 2012 · 4 comments
Closed

线程阻塞的问题 #14

ghost opened this issue Sep 26, 2012 · 4 comments

Comments

@ghost
Copy link

ghost commented Sep 26, 2012

第一:异常自动捕获之后没有做相应的处理造成用户主线程被阻塞
第二:数据提交过程在主线程中进行,造成线程阻塞

@cobub
Copy link
Owner

cobub commented Sep 28, 2012

we'll move it into a thread in next version. For current version, you can put the operations in a thread.

@ghost
Copy link
Author

ghost commented Sep 28, 2012

Cobub Razor开发人员您好:
我知道在开源社区一般是用英文交流的。但是由于我的英文水平仅局限在能读懂英文文档的水平,故而只好使用中文跟你交流,见谅。
异常自动捕获这一块我现在正着手采用多线程的方案解决,而且源码中的很多地方我认为都需要使用多线程的方案。但是我有一点不明白的是,需要自动捕获的异常往往是不可预见的,对于此异常我不知道该怎么来处理。我测试过程中故意抛出空指针的异常,测试结果是异常被捕获了但主线程还是被阻塞住而造成了应用的强制关闭。所以在这个问题上我抛弃了多线程的方案,暂时使用捕获到异常后强制退出来解决问题。
其他地方线程阻塞的问题我已经初步使用了多线程来做,代码可能需要进一步的优化。希望能与大家得到进一步的沟通。
谢谢。

Gordon
发件人: Cobub
发送时间: 2012-09-28 15:47
收件人: cobub/razor
抄送: Gordon
主题: Re: [razor] 线程阻塞的问题 (#14)
we'll move it into a thread in next version. For current version, you can put the operations in a thread.

Reply to this email directly or view it on GitHub.

@cobub
Copy link
Owner

cobub commented Oct 12, 2012

Is it the catched exception or system crash?
If the error is the catched exception, user should set exception information to Cobub Razor agent.
If the error is system crash, Cobub Razor catch the crash report and send it to server, but the application will crash

@cobub
Copy link
Owner

cobub commented Jul 2, 2013

Now all posts are operated in multi-threads.

@cobub cobub closed this as completed Jul 2, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant