Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / May 2004

Tip: Looking for answers? Try searching our database.

Loading of .NET executable

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saikat Bhattacharjee - 20 May 2004 16:42 GMT
Can someone refer to me a good online resourec about how a .NET exe
gets loaded into memory and executed once I dbl-click the executable
icon from my windows explorer?
Eugene Mayevski - 20 May 2004 20:38 GMT
> Can someone refer to me a good online resourec about how a .NET exe
> gets loaded into memory and executed once I dbl-click the executable
> icon from my windows explorer?

1) Jeffrey Richter's (sorry if misspelled) book describes this
2) you can take Shared Source CLI from MS site and study
3) in brief - the stub embedded into .NET executable loads mscorelib.dll
using Win32 API and passes execution to .NET core.

Signature

Eugene Mayevski
EldoS Corp., CTO
Networking and security solutions, custom development services
http://www.eldos.com

Mattias Sj?gren - 20 May 2004 21:13 GMT
Eugene,

>3) in brief - the stub embedded into .NET executable loads mscorelib.dll

^^^^^^^^^^^^^

I think you mean Mscoree.dll.

Mattias

Signature

Mattias Sjögren [MVP]  mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Patrik L?wendahl - 24 May 2004 11:28 GMT
Which is a stub that loads mscorwks or mscorsrv depending on the operativ
system the application runs on.

The "stub" mentioned is the PE-Header, so nothing fancy .NET specific.
Although for XP (or 2003 don't really remember) and later the OS identifes
the exe as a .net application and starts the CLR directly, effectivly
killing the possibility for pe-header based viruses on you apps

Signature

Patrik L?wendahl
www.cshrp.net - "Elegant code by witty programmers"

> Eugene,
>
[quoted text clipped - 5 lines]
>
> Mattias
Chad Z. Hower aka Kudzu - 21 May 2004 05:00 GMT
> Can someone refer to me a good online resourec about how a .NET exe
> gets loaded into memory and executed once I dbl-click the executable
> icon from my windows explorer?

What details exactly? Basically the EXE has has a stub that runs and passes
it off to .NET. .NET then grabs your EXE and starts execution of the UL via
JIT.

--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
     "Programming is an art form that fights back"

Get your ASP.NET in gear with IntraWeb!
 http://www.atozed.com/IntraWeb/

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.