Access in invalid memory: Attempt to access 怎么定位错误在那行?
Access in invalid memory: Attempt to access 怎么定位错误在那行?
大量的出现这行
Error 00001. 0x100400 (Thread 0x0FE0):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00225. 0x100400 (Thread 0x0AE0):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00226. 0x100400 (r) (Thread 0x0AE0):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00227. 0x100400 (r) (Thread 0x0AE0):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00220. 0x100400 (Thread 0x0E7C):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00223. 0x100400 (r) (Thread 0x0E7C):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00224. 0x100400 (r) (Thread 0x0E7C):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00225. 0x100400 (r) (Thread 0x0E7C):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00001. 0x100400 (Thread 0x0670):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00002. 0x100400 (r) (Thread 0x0670):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00003. 0x100400 (r) (Thread 0x0670):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00004. 0x100400 (r) (Thread 0x0670):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00005. 0x100400 (r) (Thread 0x0670):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00223. 0x100400 (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00224. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00225. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00226. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00227. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00228. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00229. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00230. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00231. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00232. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00233. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00234. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00235. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00236. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00237. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00238. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00239. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00240. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00241. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00242. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00243. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00244. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00245. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00246. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00247. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00248. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00249. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00250. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00251. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00252. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00253. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00254. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00255. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00256. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00257. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00258. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00259. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
Error 00260. 0x100400 (r) (Thread 0x09AC):
Access in invalid memory: Attempt to access 1 byte(s) at 0x00000001.
在codeguard 里面 却看不到代码的行数
[解决办法]
断点调试
[解决办法]
up
[解决办法]
估计是数组越界了
------解决方案--------------------
记得有本书上强烈建议使用snprintf来代替sprintf以防越界.
[解决办法]
解决了就好.
[解决办法]
这个他会定位到地点的ba
另外认真分析代码的细节地方