NDIS test failed on MiniportHalt

P

Paul Simon

In the MiniprotHalt routin, I have to cancel timer queue
which I have set with NdisSetTimer and NdisInitializeTimer
at Miniport InitializeHandler. When I called *NdisMCancelTimer*,
I got an assertion failed.

*** Assertion failed: ((Timer)->Header.Type == TimerNotificationObject)
|| ((Timer)->Header.Type == TimerSynchronizationObject)
*** Source File: D:\nt\private\ntos\ke\timerobj.c, line 186

The code
VOID MPHalt(
IN NDIS_HANDLE MiniportAdapterContext)
{
PMP_ADAPTER Adapter = (PMP_ADAPTER) MiniportAdapterContext;
....
// Cancel pending timers
NdisMCancelTimer(&Adapter->Timer, &Cancelled);
....
}

Could you give me any suggestions or clues, thank in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top