作者Gwaewluin (神无月 孝臣)
看板Fortran
标题Re: [问题] binary档写档错误
时间Wed Mar 11 09:13:38 2009
问题解决了
bug不在写档的地方上
後来我改成用sequential档去存一样会出现写不进去的错误
最後使用蛮干方式做了许多测试後终於找到bug了
是改写程式时,一个动态矩阵配置的地方忘记修改宣告大小
而那个矩阵会在写档的回圈里面默默记录东西
修正後就一切正常了
可是搞不懂为啥一开始不说是矩阵维度错误而要说写档有问题
早点知道的话一下就可以修好了ˍ| ̄|●
--
Deserves death! I daresay he does. Many that live deserve death. And some die
that deserve life. Can you give that to them? Then be not too eager to deal out
death in the name of justice, fearing for your own safty. Even the wise cannot
see all ends.
Gandalf to Frodo
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.120.25.235
1F:→ blc:它是说资料长度不一致呀… 03/11 10:10
2F:→ Gwaewluin:但是我那个矩阵没有用到写档,只有在存别的资料而已 03/11 11:32
3F:→ blc:memory overflow? 03/11 20:35
4F:→ Semisphere:这种问题很容易出现,阵列维度搞错在使用上或是传进 03/11 22:35
5F:→ Semisphere:副程式中维度错误,多半会显示在其他地方有错 03/11 22:36