做PCI9054的DMA传输,就是简单的DMA读数据,没有其他功能,但是每次在测试程序中调用ReadFile启动DMA传输就蓝屏,是不是参数设置什么的问题,实在找不出哪的问题,求指教。
ReceiveData_Struct_1->gOverlapped.Offset = 0;
ReceiveData_Struct_1->gOverlapped.OffsetHigh = 0;
ReceiveData_Struct_1->gOverlapped.hEvent = CreateEvent (NULL,FALSE,FALSE,"DPSK_IN_1"); //auto-reset nonsignaled
if (GetLastError() == ERROR_ALREADY_EXISTS) //"DPSK_IN_1" event object existed
{
CloseHandle(ReceiveData_Struct_1->gOverlapped.hEvent); // Closed
ReceiveData_Struct_1->gOverlapped.hEvent = CreateEvent(NULL,FALSE,FALSE,"DPSK_IN_1");
}
result=ReadFile(hDevice,ReceiveData_Struct_1->buffer,4096,
&nbytes,&ReceiveData_Struct_1->gOverlapped);//每次执行这步就蓝屏了
------解决方案--------------------
蓝屏信息是什么?
驱动安装有问题么?是自己开发的驱动程序么?