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

Upcoming Driver Seminars:
WDF Lab, Santa Clara, CA 22 Feb 2010
WDM Lab, Santa Clara, CA 22 Feb 2010
Debugging Lab, Santa Clara, CA 1 Mar 2010
WDF Lab, Munich, Germany 15 Mar 2010
Software & Internals Lab, Seattle, WA 29 Mar 2010
Debugging Lab, Munich, Germany 12 Apr 2010
OSR 研讨会即将登陆上海
OSR 세미나 서울 개최??
OSR Seminars Coming to Hyderabad


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 09:25.


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