Jump-start your project by learning from devs who
write Windows drivers and file systems every day.
Take an OSR seminar!

Upcoming OSR Seminars:
WDM Lab, Seattle, WA 16 August 2010
WDF Lab, Santa Clara, CA 27 September 2010
Debug Lab, Portland, OR 18 October 2010
Windows Internals & Software Drivers Lab, Santa Clara, CA 15 November 2010


Go Back   OSR Online Lists > ntdev
Welcome, Guest
You must login to post to this list
  Message 1 of 2  
21 Aug 01 23:39
ntdev member 6229
xxxxxx@hotmail.com
Join Date:
Posts To This List: 3
cant i unload a driver b4 terminating the system threads it created?

Hi Guys, I am creating a system thread in the driver entry routine. and want this thread to be terminated when i unload the driver. So i have a global boolean which when set to true the system thread will terminate itself. but the problem is after the unload routine finishes system goes blue :(... stack at the time when BSOD occur is F09E25D1 PsSetCreateThreadNotifyRoutine + 00AA KiUnexpectedInterrupt + 0180 why does it happen so... cant i unload a driver b4 terminating its system threads? ta ta, Arun _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp --- You are currently subscribed to ntdev as: $subst('Recip.EmailAddr') To unsubscribe send a blank email to leave-ntdev-$subst('Recip.MemberIDChar')@lists.osr.com
  Message 2 of 2  
22 Aug 01 13:28
ntdev member 542
xxxxxx@storagecraft.com
Join Date:
Posts To This List: 2446
Re: cant i unload a driver b4 terminating the system threads it created?

Wait on the thread's pointer to catch the moment it will exit. The only reliable way. Also your BOOLEAN must be declared as "volatile", don't forget this. Max ----- Original Message ----- From: "Arun kumar Sundaram" <xxxxx@hotmail.com> To: "NT Developers Interest List" <xxxxx@lists.osr.com> Sent: Wednesday, August 22, 2001 7:35 AM Subject: [ntdev] cant i unload a driver b4 terminating the system threads it created? > Hi Guys, > > I am creating a system thread in the driver entry routine. and want this > thread to be terminated when i unload the driver. So i have a global boolean > which when set to true the system thread will terminate itself. but the > problem is after the unload routine finishes system goes blue :(... stack at > the time when BSOD occur is > > F09E25D1 > PsSetCreateThreadNotifyRoutine + 00AA > KiUnexpectedInterrupt + 0180 > > why does it happen so... cant i unload a driver b4 terminating its system > threads? > > ta ta, <...excess quoted lines suppressed...> --- You are currently subscribed to ntdev as: $subst('Recip.EmailAddr') To unsubscribe send a blank email to leave-ntdev-$subst('Recip.MemberIDChar')@lists.osr.com
Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You must login to OSR Online AND be a member of the ntdev list to be able to post.

All times are GMT -5. The time now is 13:58.


Copyright ©2005, OSR Open Systems Resourcs, Inc.
Based on vBulletin Copyright ©2000 - 2005, Jelsoft Enterprises Ltd.
Modified under license