今天太衰了,三个错误,折磨了一天
2007-04-23 21:25
323 查看
1,线程不能跑。
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
public FastMove() ...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
m_thread = new Thread();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
m_thread.start();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.out.println("train thread started");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
在构造函数中定义一个子线程,执行完了却怎么也不执行run()函数,最后郑鸿告诉我是因为声明线程的时候没有指明主线程,必须指明是this。m_thread = new Thread(this);。高手一指点,令我醒悟。
2,减号-写成了赋值号=。3,变量写错了。
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
int chgRow = m_curScrRowInMap = m_oldScrRowInMap;
这种代码我都写出来了,还让我找了好久才找到错误。
3,变量写错了。
抄代码的时候抄错了。
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockStart.gif)
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ContractedBlock.gif)
public FastMove() ...{
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
m_thread = new Thread();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
m_thread.start();
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/InBlock.gif)
System.out.println("train thread started");
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/ExpandedBlockEnd.gif)
}
在构造函数中定义一个子线程,执行完了却怎么也不执行run()函数,最后郑鸿告诉我是因为声明线程的时候没有指明主线程,必须指明是this。m_thread = new Thread(this);。高手一指点,令我醒悟。
2,减号-写成了赋值号=。3,变量写错了。
![](http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif)
int chgRow = m_curScrRowInMap = m_oldScrRowInMap;
这种代码我都写出来了,还让我找了好久才找到错误。
3,变量写错了。
抄代码的时候抄错了。
相关文章推荐
- 应用在今天一天先后上线腾讯的三个平台,高兴。
- 这个是看别人改的代码。但是有错误,,,找不到方法来改正错误。。。。今天编了一天的代码,脑细胞都要死完了。真心觉得计算机的工作不好做的啊,好好加油啊。。我的代码啊,不懂了!下面的有错误啊。
- 今天真是不在状态的一天,又是一个书写的错误(本文仅为提醒自己,你可以选择跳过)
- 今天亲自编译内核,没有经历错误的折磨!!!
- 今天安装Tru64.折磨了一天.
- SQL Server连接中的三个最常见错误:
- 今天一天的收获
- 今天打开网站,突然发现sql 2005出现错误:数据库 'mybase_db' 的事务日志已满。若要查明无法重用日志中的空间的原因,请参阅 sys.databases 中的 log_reuse_wait_desc 列。
- 今天在一个10203数据库的alert文件中发现了ORA-1461的错误。
- 今天犯了一错误,贴下给需要的兄弟们!
- 今天遇到ORA-01114错误!
- 总有一天会有人为你今天的努力买单的
- 今天发现使用了很久的SQLite3原来忘记释放返回错误信息的buffer了!汗!
- MVC5-9 今天讲三个Descriptor
- “SQL Server连接中三个常见的错误分析”补充
- 已当天为初始点,获取任何一天日期(...,前天,昨天,今天,明天,后天,.....)
- 2016/10/09 今天真是忙碌的一天啊
- 今天在写powershell脚本中犯的两个错误
- 今天解决了TNS:协议适配器错误 !
- 错误笔记-----今天在敲代码的时候,出现了一个问题!