Previous Thread:   Call stack

1/25/2006 6:50:54 PM    Deployment loads "symbols" from other projects
I just created a second CLR function and inspected the Output Debug window.  
  
I noticed that a host of DLLs were loaded even though my function only  
  
returns a string "hello". More troubling, however was the fact that symbols  
  
were loaded for the first project (a temperature conversion function). Why  
  
would symbols be loaded for projects that have nothing what-so-ever to do  
  
with the current project?  
  
--  
  
____________________________________  
  
William (Bill) Vaughn  
  
Author, Mentor, Consultant  
  
Microsoft MVP  
  
INETA Speaker  
  
www.betav.com/blog/billva  
  
www.betav.com  
  
Please reply only to the newsgroup so that others can benefit.  
  
This posting is provided "AS IS" with no warranties, and confers no rights.  
  
__________________________________



1/28/2006 10:02:39 AM    Re: Deployment loads "symbols" from other projects
"William \(Bill\) Vaughn" <billvaRemoveThis@nwlink.com> wrote in  
  
news:e4wf8MiIGHA.2036@TK2MSFTNGP14.phx.gbl:  
  
That whole "host" of dll's are System dlls loaded from the GAC. Dll's  
  
like mscorlib - can be useful when running managed code - and such a  
  
like.  
  
Well, you can not view an individual project as an traditional  
  
application. Your project will be part of an app domain dependent on who  
  
is the owner of the assembly. So, therefore - when you run your function  
  
for the first time, the dll's that will be part of the domain is loaded  
  
as well. They obviously then stay loaded (unless, you of course do a new  
  
deployment - which will tear down the appdomain).  
  
HTH  
  
Niels  
  
--  
  
**************************************************  
  
* Niels Berglund  
  
* http://staff.develop.com/nielsb  
  
* nielsb@no-spam.develop.com  
  
* "A First Look at SQL Server 2005 for Developers"  
  
* http://www.awprofessional.com/title/0321180593  
  
**************************************************

1/28/2006 10:10:58 AM    Re: Deployment loads "symbols" from other projects
Yea, but it seems to me that there are still too many totally unnecessary  
  
DLL being loaded. The function makes no use of DataSets (so why  
  
system.data.xml?) or SqlClient, or any other data access class. It does  
  
reference a SqlDouble as a passed datatype... This just seems like a  
  
performance killer for apps that don't need this extra memory chewed up for  
  
nothing.  
  
--  
  
____________________________________  
  
William (Bill) Vaughn  
  
Author, Mentor, Consultant  
  
Microsoft MVP  
  
INETA Speaker  
  
www.betav.com/blog/billva  
  
www.betav.com  
  
Please reply only to the newsgroup so that others can benefit.  
  
This posting is provided "AS IS" with no warranties, and confers no rights.  
  
__________________________________  
  
"Niels Berglund" <nielsb@develop.com> wrote in message  
  
news:Xns9759B78A9C311nielsbdevelopcom@207.46.248.16...