阅读:1150回复:2
内存?!
WIN2K 2000DDK 网卡
在驱动程序中的初始化程序中初始化一个链表 为每个链表中的节点分配内存用NdisAllocateMemoryWithTag函数 分配的是Nonpaged内存 调试时发现无论链表的节点数是多少 链表中的最后5个节点所分配的内存总是溢出 SoftICE的出错提示为: An overrun error occured in memery 84******(具体地址) block 请教各位大侠不吝赐教。 谢谢! :) |
|
|
沙发#
发布于:2001-12-13 03:26
That\'s BoundsChecker error warning, you can disable it by disable BoundsChecker or just disable memory track in BoundsChecker. But you\'d better set a memory access breakpoint to figure out who overrun the memory. For example \"bpmd BLockEndAddress w\", where BlockEndAddress=Block Address+Block size.
If you doubt BoundsChecker, you might be able to use Driver Verifier in DDK\\bin to test it again. But I believe there\'s a bug in your code, you need to dig it out. |
|
板凳#
发布于:2001-12-20 10:05
谢谢xqchen!
程序中的Bug找到了。 而且发现驱动程序分配内存是一次分配个一大片,然后再细分给各个结构的。 |
|
|