Welcome to MSDN Blogs Sign in | Join | Help

Try explorer's thread degraded mode ...

On any given day that is past say 7 days of uptime, I have 100 - 300 windows open, not kidding, here is a shot of my current task bar ... there shouldn't be anything msft confidential there, at least that you'd actually be able to read more than 4 or 5 letters of ... I know by heart I have 41 rows, so that's 204 windows open there ... I turn off that "group similar taskbar buttons" "feature", and the buttons show up in order, so a given "job" usually has task buttons around each other (in fact the last 6 buttons there are for this blog post) ... so what does this have to do with explorer ...

The basic upshot of this computing lifestyle choice is that my heart skips a beat and then visceral pain sets in whenever explorer AVs (Access Violation) ... explorer is what controls the start bar, and when it restarts the task buttons will be in a random order ... for the *nix types, this is like your window manager core dumping ... it's awefulness.

Right so getting to thread degraded mode ... my own term, for when you simply freeze the AV'd thread in a process, and allow the process to continue on its merry way.  You can do this because maybe the thread may not be doing something particularly useful, ergo it is "not a very serious AV", or maybe call it a "slight AV".  The process often (sometimes?) continues to function.

How to use thread degraded mode:

First, you will have to prepare your machine for initiating thread degraded mode ...

You will need to get a user mode debugger (there may already be a ntsd.exe in your system32, which should work, but no one uses that anchient one) go get a good version, which for an x86 box installs from this exe (i think).  Install it to C:\debuggers, everyone else around here seems to.

Navigate to this registry key (read more about it):
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug"
Create registry string (REG_SZ) value with a name of "Debugger" and value of
"C:\debuggers\ntsd -p %ld -g -G -e %ld"
If it already has a value you may want to save it.

You only have to do those steps once, and now you are ready to run in thread degraded mode, if the need should arise.

The next time explorer (or any application) crashes / AVs on you, you will get an option to debug the process ... select "Debug" or "Yes" or whatever ... this will open a debugger attached to explorer ( you'll probably have to alt-tab to find this new debugger window, because the task bar will be frozen/unresponsive while you debug it ;).

The debugger will open with the AV'ing thread as the current thread, so use "~f<enter>" (that is a tilde), to freeze this thread.  Then "g<enter>" will let the task bar come back to you (maybe).  At this point you should be praying that the thread you froze isn't holding any crucial critical sections or locks, and that things will return to "normal" ... your mileage may vary ... greatly.

It will look like this:
    0:008> ~f
    0:008> g

After you 'g' it, it will start printing this kind of thing in the debugger ...
    System 0: 1 of 84 threads are frozen
    System 0: 1 of 84 threads were frozen
    System 0: 1 of 84 threads are frozen
That's just explorer letting you know it loves you for not letting go, and putting it on life support.

Oh the crash was in MSN Desktop Search, but I don't fault (intended ;) them because I'm running the first beta of the software released in Dec 2004, I've heard they've had an update since then.

Anyway, as of approximately 8:20 AM (PST) yesterday (wed) morning, I've been running in thread degraded mode ... as I finish this post I've got 4 frozen threads ... there were a few more threads with "issues" but I don't have time to blog about them right yet ...

Published Thursday, March 16, 2006 6:29 PM by BrettSh

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Definitely Hell is freezing over

Between the second post of Brett the Blogger...to Intuit's official instructions on how to get Quickbooks...
Friday, March 17, 2006 2:09 AM by E-Bitz - SBS MVP the Official Blog of the SBS "Diva"

# thread degraded mode ... the sequel.

Continuing battle to keep explorer alive and &quot;healthy&quot; ...
Sunday, March 19, 2006 6:50 AM by 183

# re: Try explorer's thread degraded mode ...

Good stuff Brett. Seriously.

What would I like to see out of the task bar? I would like to let it group stuff but allow you to change the groupings. Say I don't want one of the explorer's to be in with the rest, let me pull it out separately. Or let me say in the first place, add this to group X.

I also wouldn't mind being able to rightclick on a task bar item and saying FREEZE. Of course this isn't as useful for some multithreaded apps.

Keep up the posts.
Sunday, March 19, 2006 2:26 PM by joe

# innovation index

Friday, October 24, 2008 4:12 PM by innovation index

# adult video on demand.com

Monday, November 03, 2008 8:19 AM by adult video on demand.com

# sitemap

Thursday, November 06, 2008 11:10 PM by url

# what to do for zithromax induced constipation

<a href='http://psycomfort.com/forms/logfile/cache/news-9.html'>what to do for zithromax induced constipation</a> <a href="http://psycomfort.com/forms/logfile/cache/news-9.html">what to do for zithromax induced constipation</a> [link=http://psycomfort.com/forms/logfile/cache/news-9.html]what to do for zithromax induced constipation[/link]

Sunday, November 09, 2008 4:23 AM by what to do for zithromax induced constipation

# porsche gt3 videos

<a href='http://talibov.info/osc/images/pixels/text-2076.htm'>porsche gt3 videos</a> <a href="http://talibov.info/osc/images/pixels/text-2076.htm">porsche gt3 videos</a> [link=http://talibov.info/osc/images/pixels/text-2076.htm]porsche gt3 videos[/link]

Friday, November 14, 2008 7:13 AM by porsche gt3 videos

# netgear router

Friday, November 14, 2008 7:14 AM by netgear router

# arts bee movie q queen title

arts bee movie q queen title [URL=http://xlac4tr.ifrance.com/arts-bee-movie-2008-11-27.htm]arts bee movie q queen title[/URL] [url=http://xlac4tr.ifrance.com/arts-bee-movie-2008-11-27.htm]arts bee movie q queen title[/url] [url]http://xlac4tr.ifrance.com/arts-bee-movie-2008-11-27.htm[/url]

Wednesday, December 10, 2008 10:44 AM by arts bee movie q queen title

# ashanti rain music video

<a href='http://liendar.ifrance.com/page1988.html'>ashanti rain music video</a> <a href="http://liendar.ifrance.com/page1988.html">ashanti rain music video</a> [link=http://liendar.ifrance.com/page1988.html]ashanti rain music video[/link]

Thursday, December 11, 2008 3:44 PM by ashanti rain music video

# alisea airlines

Thursday, December 11, 2008 3:45 PM by alisea airlines

# skype beta video

skype beta video [URL=http://fixpasxbu.ifrance.com/news-1614.html]skype beta video[/URL] [url=http://fixpasxbu.ifrance.com/news-1614.html]skype beta video[/url] [url]http://fixpasxbu.ifrance.com/news-1614.html[/url]

Thursday, December 11, 2008 3:46 PM by skype beta video

# takedown rifle

<a href='http://ezpascal.strefa.pl/takedown.htm'>burnout 3 takedown cheat code</a> <a href="http://ezpascal.strefa.pl/takedown.htm">burnout 3 takedown cheat ps2</a> [link=http://ezpascal.strefa.pl/takedown.htm]terrorist takedown[/link]

Sunday, December 14, 2008 4:07 AM by takedown

# top

Sunday, December 14, 2008 4:07 AM by site

# 183 Try explorer s thread degraded mode | Toe Nail Fungus

# re: Try explorer's thread degraded mode ...

あなたは右脳派?もしくは左脳派?隠されたあなたの性格分析が3分で出来ちゃう診断サイトの決定版!合コンや話のネタにも使える右脳左脳チェッカーを試してみよう

Monday, June 15, 2009 11:27 AM by 右脳左脳

# 183 Try explorer s thread degraded mode | low cost car insurance

# re: Try explorer's thread degraded mode ...

貴方のオ○ニーライフのお手伝い、救援部でHな見せたがり女性からエロ写メ、ムービーをゲットしよう!近所の女の子なら実際に合ってHな事ができちゃうかも!?夏に向けて開放的になっている女の子と遊んじゃおう

Thursday, June 18, 2009 10:48 AM by 救援部

# 183 Try explorer s thread degraded mode | bar stools

# re: Try explorer's thread degraded mode ...

男性が主役の素人ホストでは、男性のテクニック次第で女性会員様から高額な謝礼がもらえます。欲求不満な人妻や、男性と出会いが無い女性が当サイトで男性を求めていらっしゃいます。興味のある方はTOPページからどうぞ

Tuesday, June 23, 2009 9:22 AM by 素人

# re: Try explorer's thread degraded mode ...

エロ漫画やエロゲーなどでかわいい女の子が淫らな肉欲に溺れる様子をみて「こんなの現実にあるわけない」そう思った事ありませんか?それが当サイトでは現実に実現できるのです!羨ましさを憶えた2次元の中での出来事。あなたと同じように望む女の子が当サイトに集まっているのです

Wednesday, June 24, 2009 9:12 AM by エロ漫画

# re: Try explorer's thread degraded mode ...

高級チェリーの夏は童貞卒業の夏です。セレブ達も童貞を卒業させたくてウズウズしながら貴方との出会いを待っています。そんなセレブ達に童貞を捧げ、貴方もハッピーライフを送ってみませんか

Thursday, June 25, 2009 9:01 AM by 高級チェリー

# re: Try explorer's thread degraded mode ...

セレブラブではココロとカラダに癒しを求めるセレブ達と会って頂ける男性を募集しています。セレブ女性が集まる当サイトではリッチな彼女たちからの謝礼を保証、安心して男性はお金、女性は体の欲求を満たしていただけます。無料登録は当サイトトップページからどうぞ

Saturday, June 27, 2009 8:33 AM by セレブラブ

# re: Try explorer's thread degraded mode ...

恋することって怖くないですか?最近ちょっと臆病になってて…そういうの抜きでえっちなことしたくて… lovely-i0709@docomo.ne.jp優しい人がいたらメール待ってます☆

Friday, July 03, 2009 9:49 AM by メル友募集

# re: Try explorer's thread degraded mode ...

童貞卒業を考えているなら、迷わずココ!今まで童貞とヤッた事がない女性というのは意外と多いものです。そんな彼女たちは一度童貞とやってみたいと考えるのは自然な事と言えるでしょう。当サイトにはそんな好奇心旺盛な女性たちが登録されています

Tuesday, July 07, 2009 10:12 AM by 童貞卒業

# re: Try explorer's thread degraded mode ...

素人ホストでは日頃のストレスを発散したい、もう一度恋がしたい、そういた女性が癒しを求めて登録されています。当サイトは癒やされたい女性・寂しい女性を癒やす男性が集うカップリングサイトです

Wednesday, July 08, 2009 8:34 AM by 素人

Leave a Comment

(required) 
required 
(required) 
 
Page view tracker