Thread waiting when started from console
From: sanjay (skanadeNOSPAM_at_vsnl.com)
Date: 07/07/04
- Next message: Pavel A.: "Re: Another inf question REG_MULTI_SZ & REG_EXPAND_SZ"
- Previous message: Steve: "1394 Async Request Rx (BUSY_X blocking)"
- Next in thread: Peter Wieland [MSFT]: "Re: Thread waiting when started from console"
- Reply: Peter Wieland [MSFT]: "Re: Thread waiting when started from console"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 7 Jul 2004 15:14:46 +0530
I am posting this question here because this seems to be the right group.
We have a virtual disk device driver developed by a third party that mounts
a file as a disk drive. Basically the Windows application issues a
DeviceIoControl to the driver to mount the dos drive number. Then on
success, the application uses a DefineDosDevice to map the device.
This all works fine from a normal application.
But the moment it is done from a console application, after return from the
Main, the console application fails to exit because the thread waits in the
driver. The thread comes back only after the device is unloaded from another
application.
My question is what is different when done from console application. Why
should the thread wait? I am using Windows XP.
Thanks.
- Next message: Pavel A.: "Re: Another inf question REG_MULTI_SZ & REG_EXPAND_SZ"
- Previous message: Steve: "1394 Async Request Rx (BUSY_X blocking)"
- Next in thread: Peter Wieland [MSFT]: "Re: Thread waiting when started from console"
- Reply: Peter Wieland [MSFT]: "Re: Thread waiting when started from console"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|