阅读:1066回复:1
大家探讨一下内存方面的问题
我用NdisAllocateMemory分配了一块内存空间,并在DispatchClose中调用了NdisFreeMemory。可是如果我多次运行该程序,就会出现蓝屏现象。
同时,如果我把改驱动卸掉后,在加载也会出现蓝屏现象。 我找了半天,也没有找到原因。WHY!!!!!!!!!!! |
|
沙发#
发布于:2003-02-22 18:34
你是在什么例程中调用NDISALLOATEMEMORY???
我以前在DriverEnter 例程中调用NDISALLOATEMEMORY;跟你一样蓝屏!但是调用ExAllocatePool申请内存就没有任何问题了; 我想蓝屏的原因可能是NDISALLOATEMEMORY运行的IRQL不对 Callers of NdisAllocateMemory can run at IRQL <= DISPATCH_LEVEL to allocate memory from nonpaged pool. NIC drivers that allocate contiguous and/or noncached memory must be running at IRQL PASSIVE_LEVEL during initialization. [编辑 - 2/22/03 by antspower] |
|
|