KeWaitForSingleObject returns 0xFFFFFFFF

Hi,
Iam writing a USB Serial Port Driver in Windows 98. (VxD + WDM )
In my USB driver after submitting my URB i wait till the URB gets
completed…
( IoCallDriver then KeWaitForSingleObject )
This works fine but sometimes KeWaitForSingleObject returns -1 (0xFFFFFFFF)
and the whole system crashes…
The Stack shows _VWin32_CloseVxDHandle…

Any ideas what could be wrong?

I’ve googled the deja newsgroup archives and found so many developers had
faced same problem… But no solutions were posted for those queries!

Thanks for your help…

regards,
Vijay Anand

----- Original Message -----
From: “Vijay Anand”
To: “NT Developers Interest List”
Sent: Tuesday, June 03, 2003 1:14 AM
Subject: [ntdev] KeWaitForSingleObject returns 0xFFFFFFFF

> Hi,
> Iam writing a USB Serial Port Driver in Windows 98. (VxD + WDM )
> In my USB driver after submitting my URB i wait till the URB gets
> completed…
> ( IoCallDriver then KeWaitForSingleObject )
> This works fine but sometimes KeWaitForSingleObject returns -1
(0xFFFFFFFF)
> and the whole system crashes…
> The Stack shows _VWin32_CloseVxDHandle…
>
> Any ideas what could be wrong?
>
> I’ve googled the deja newsgroup archives and found so many developers had
> faced same problem… But no solutions were posted for those queries!
>
> Thanks for your help…
>
> regards,
> Vijay Anand
>
I too have faced this intermittent problem and have never come up with a
solution, so I would be very interested if any WDM in 98 gurus could shed
some light on the situation. Thanks in advance.

Philip Lukidis

Philip Lukidis wrote:

> This works fine but sometimes KeWaitForSingleObject returns -1
(0xFFFFFFFF)
> and the whole system crashes…
I too have faced this intermittent problem and have never come up with a
solution, so I would be very interested if any WDM in 98 gurus could shed
some light on the situation. Thanks in advance.

p. 182.

Of what work is left as an exercise for the reader.


Walter Oney, Consulting and Training
Basic and Advanced Driver Programming Seminars
Check out our schedule at http://www.oneysoft.com

“Walter Oney” wrote in message
> Philip Lukidis wrote:
> > > This works fine but sometimes KeWaitForSingleObject returns -1
> > (0xFFFFFFFF)
> > > and the whole system crashes…
> > I too have faced this intermittent problem and have never come up with a
> > solution, so I would be very interested if any WDM in 98 gurus could
shed
> > some light on the situation. Thanks in advance.
>
> p. 182.
>
> Of what work is left as an exercise for the reader.
>
> –
> Walter Oney, Consulting and Training
> Basic and Advanced Driver Programming Seminars
> Check out our schedule at http://www.oneysoft.com
>
I should have rescanned that chapter looking for pertinent 98/ME
compatibility issues when this problem occurred. Thanks for pointing this
out.

Philip Lukidis