码迷,mamicode.com
首页 >  
搜索关键字:thread stack    ( 23141个结果
解决使用Handler时Can't create handler inside thread that has not called Looper.prepare()
在android开发中,主线程不能进行耗时操作,所以我们经常把耗时操作放在子线程中进行,那么就需要子线程与主线程相互交流,就需要使用到handler.而在使用handler过程中,如果对handler使用不太熟练的话就偶尔会出现Can‘tcreatehandlerinsidethreadthathasnotcalledLooper.prepa..
分类:其他好文   时间:2016-08-26 15:45:36    阅读次数:152
iOS开发基础知识--碎片42
iOS开发基础知识--碎片42 iOS开发基础知识--碎片42 1:报thread 1:exc_bad_access(code=1,address=0x70********) 闪退 这种错误通常是内存管理的问题,一般是访问了已经释放的对象导致的,可以开启僵尸对象(Zombie Objects)来定位 ...
分类:移动开发   时间:2016-08-26 15:18:42    阅读次数:265
程序员交流学习平台
1、博客园 2、CSDN 3、GitHub 4、开源中国 5、推酷 6、Stack Overflow 7、PHP100 8、W3CSchool 9、WEB前端开发(CSS88.com) 10、51CTO 11、极客学院 12、慕课网 13、腾讯教育 14、红黑联盟 15、IT之家 16、IT天空 1 ...
分类:其他好文   时间:2016-08-26 13:36:47    阅读次数:168
HttpClient请求网络数据的Post请求
new Thread(){ public void run() { try { //获得输入框内容 String phonenum=et_phone_num.getText().toString().trim(); String password=et_password.getText().toSt ...
分类:Web程序   时间:2016-08-26 12:22:17    阅读次数:266
AsyncTask异步加载和HttpURLConnection网络请求数据
//获得网络数据 private void huodeshuju() { //这里是使用线程,已注释掉 /*new Thread(){ public void run() { try { URL url=new URL(urlPath); HttpURLConnection urlConnectio ...
分类:Web程序   时间:2016-08-26 12:19:26    阅读次数:171
HttpURLConnection请求网络数据的GET请求
//清单文件中添加权限 <uses-permission android:name="android.permission.INTERNET"/> new Thread(){ public void run() { try { URL url=new URL(urlPath); HttpURLCon ...
分类:Web程序   时间:2016-08-26 12:10:31    阅读次数:155
AsyncTask异步加载和HttpURLConnection网络请求数据
//获得网络数据 private void huodeshuju() { //这里是使用线程,已注释掉 /*new Thread(){ public void run() { try { URL url=new URL(urlPath); HttpURLConnection urlConnectio ...
分类:Web程序   时间:2016-08-26 12:03:20    阅读次数:169
Java JVM:内存溢出(栈溢出,堆溢出,持久代溢出以及 nable to create native thread)
转载自https://github.com/pzxwhc/MineKnowContainer/issues/25 包括:1. 栈溢出(StackOverflowError)2. 堆溢出(OutOfMemoryError:java heap space)3. 永久代溢出(OutOfMemoryErro ...
分类:编程语言   时间:2016-08-26 11:59:37    阅读次数:560
C++ STL--queue 的使用方法
2、queuequeue 模板类的定义在头文件中。与stack 模板类很相似,queue 模板类也需要两个模板参数,一个是元素类型,一个容器类型,元素类型是必要的,容器类型是可选的,默认为deque 类型。定义queue 对象的示例代码如下:queue q1;queue q2; queue 的基本操... ...
分类:编程语言   时间:2016-08-26 10:19:19    阅读次数:175
[POJ1003]Hangover
[POJ1003]Hangover 试题描述 How far can you make a stack of cards overhang a table? If you have one card, you can create a maximum overhang of half a card ...
分类:其他好文   时间:2016-08-26 09:07:44    阅读次数:208
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!