The Artima Developer Community
Sponsored Link

.NET Buzz Forum
The amazing CLR runtime re-appearing trick

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Roy Osherove

Posts: 1807
Nickname: royo
Registered: Sep, 2003

Roy Osherove is a .Net consultant based in Israel
The amazing CLR runtime re-appearing trick Posted: Mar 18, 2004 4:51 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Roy Osherove.
Original Post: The amazing CLR runtime re-appearing trick
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Roy Osherove
Latest Posts From ISerializable

Advertisement
[Update: Joseph cooney alerted me to the fact that this is probably cause by Windows File Protection, and he was totally right. Coolness! Here's a very good article about this subject.]
 
Here's a CLR party trick for you:
  • if you have .Net 1.1 installed on your machine
  • Go to the location of your mscorlib.dll file (usually c:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\mscorlib.dll)
  • Rename or move mscorlib.dll to some place where it will not be found
  • Try to run a program that uses .net 1.1
  • Your app will load and work just fine
  • Look at the original location of the file you just renamed/moved
  • Automagically - mscorlib.dll will be there, as if you never touched it, restored by some unknown force in the matrix.
Note: this only works for the .Net 1.1 runtime. Try the same stunt with mscorlib.dll version 1.0 and your app won't load.
 
I do wonder what is the process behind this. Anyone have any clue?

Read: The amazing CLR runtime re-appearing trick

Topic: New and Notable 39 Previous Topic   Next Topic Topic: XBox Friends

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use