Thread waiting when started from console

From: sanjay (skanadeNOSPAM_at_vsnl.com)
Date: 07/07/04


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.



Relevant Pages

  • Autoexec.nt processing
    ... I'm loading an ANSI driver. ... COMMAND.COM windows. ... Mousclip is an extension that adds mouse based copy and paste to console ... I'm also loading a ramdisk as a driver, ...
    (microsoft.public.windowsxp.customize)
  • Re: Thread waiting when started from console
    ... i can't imagine why it would be different for a console app than a windows ... have you tried debugging your driver to see why it's not waking up the ...
    (microsoft.public.development.device.drivers)
  • Re: how do I reinstall the Microsoft fax driver in Win XP?
    ... I f there is no driver for fax how can I solve this? ... MS Fax is receiving faxes, but it is impossible to send. ... >> That doesn't work, it isn't the fax console, it is the ... >> need to know where the windows fax driver is so that I ...
    (microsoft.public.windowsxp.print_fax)
  • Re: Cannot restore registry
    ... | feature, follow these steps: ... When the Windows Advanced Options menu appears, ... | Feature: Device Driver Roll Back ... | Feature: System Restore ...
    (microsoft.public.windowsxp.configuration_manage)
  • Re: Boot up problem... with a difference
    ... Safe mode boot is fine. ... Looked further into the last errors and noticed PXRD Driver. ... Event Type: Error ... Windows cannot unload your classes registry file - it is still in ...
    (microsoft.public.windowsxp.help_and_support)