Hi,
I have typical problem ,
My requirement is on a separate thread [which is created in the UMDF driver] has to access the device and driver object[basicall in this thread context i need to create and send a request to a lower driver] .
example code loooks like this ::
OnThreadStart()
{
…
submitrequest(deviceobj,fileobj);
}
submitrequest(IWDFDevice, IwdfFile)
{
m_Device->GetDriver(&m_Driver);
…
}
when a call for getdriver is made there is crash…So somebody help me in this…why this crash happens…?
Do other calls to the IWDFDevice interface pointer succeed? Are you
sure it is the same pointer value in both instances (the context where
you started the thread and the new thread)?
d
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Wednesday, July 25, 2007 7:07 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] UMDF driver crashes when accessing the IWDFdevice
object and driver object in thread
Hi,
I have typical problem ,
My requirement is on a separate thread [which is created in the UMDF
driver] has to access the device and driver object[basicall in this
thread context i need to create and send a request to a lower driver] .
example code loooks like this ::
OnThreadStart()
{
…
submitrequest(deviceobj,fileobj);
}
submitrequest(IWDFDevice, IwdfFile)
{
m_Device->GetDriver(&m_Driver);
…
}
when a call for getdriver is made there is crash…So somebody help me
in this…why this crash happens…?
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer