Hello,
I coded a simple work item callback, but it crashes my computer, I
can't guess why. here's the code :
void WorkItemCallback( WorkItemStruct *work )
{
KdPrint(( "Hello !" ));
IoFreeWorkItem( work->item );
ExFreePool( work );
}
work = (WorkItemStruct *) ExAllocatePool( PagedPool,
sizeof(WorkItemStruct) );
if( work != NULL )
{
work->item = IoAllocateWorkItem( DeviceObject );
IoQueueWorkItem( work->item, (PIO_WORKITEM_ROUTINE)
WorkItemCallback,
DelayedWorkQueue, work );
}
And here's the bugcheck :
*** Fatal System Error: 0x0000007e
(0xC0000005,0x80550211,0xF7A5BC50,0xF7A5B94C)
What could cause this bug ?