Archive for July, 2005

AsmL
Overview
What is AsmL?
AsmL is the Abstract State Machine Language
http://research.microsoft.com/fse/asml/
*************************************************
cOMEGA
http://research.microsoft.com/Comega/
**********************************************
Concurrency Control and Recovery in Database Systems
http://www.research.microsoft.com/~gray/talks/Gray_Turing_FCRC.pdf
***************************************************************
SXM: C# Software Transactional Memory
http://www.cs.brown.edu/~mph/sxm.htm
********************************************
SPEc# for vs20005
http://research.microsoft.com/specsharp/
***************************************************
TERRA SERVICES
http://terraservice.net/webservices.aspx
******************************************************
IceCube (engine and applications)
http://research.microsoft.com/camdis/icecube.htm
****************************************************************
Gyro: Generics for the SSCLI
http://research.microsoft.com/projects/clrgen/
************************************************************
C# Software Transactional Memory
Advertisements
I got a query that how to recursively copy all the folders & files given a path to the source and destination folders.It was also asked that since there is no folder.copy command in the .net framework how to accomplish the same.Here is the solution I have craeted for the same have a look:-
 
 
below is the example code and much simplified where i am considering the ReadOnly..you can add ur Hidden and other attributes accordingly:-
 

private void button2_Click(object sender, System.EventArgs e)

{

copyfolder(@”C:\Documents and Settings\shreeman\Desktop\temp read and delete”,@”C:\Documents and Settings\shreeman\Desktop\new temp read and delete”);

MessageBox.Show(“copy complete”);

 

}

 

privatevoid copyfolder(string sourcedir,string destdir)

{

 

DirectoryInfo dirinfo=

new DirectoryInfo(sourcedir);

 

if(Directory.Exists(destdir)==false)

{

Directory.CreateDirectory(destdir);

}

 

foreach(FileSystemInfo fsinf in dirinfo.GetFileSystemInfos())

{

 

string destfilename=Path.Combine(destdir,fsinf.Name);

 

if ( fsinf is FileInfo)

{

 

if (File.Exists(destfilename)==true)

{

if ((File.GetAttributes(destfilename) != FileAttributes.Normal))

{

File.SetAttributes(destfilename,FileAttributes.Normal);

}

}

// Try to copy the file.

File.Copy(fsinf.FullName,destfilename,

true);

 

}

else

{

copyfolder(fsinf.FullName,destfilename);

}

}

 

}

 

Ya I can say that too many things happen in a singleday some are good some are bad..first the good one :-i got the news that Ms has awarded me MVP the BAD is due to  security patch my Beta (sql2005+vs2005) stops working and from morning  i am fighting with it..I am very much scared of the format..system option to get the same running…fighting is still going on ..by the time i thought why n’t have few post in blog as set up is going on :-
 
I was working on to findout in clrprofiler and clrspy the memory usage of our application before we shipped our app into release and I thought how many of questions we got in newgroupand usergroup regd the memory usage and GC?I was thinking is there any way for us to debug and look into the same?I am gonna not going to mention what GC does and how?
What I was looking for is how the obvject occupied the memory and how the same was collected and is this what we were designed or some leaks are there and whether the undeterministic behavior of GC is a major concerns for us…eventually i saw few very good post from yun jin & mvstanton discussignn variable lifetime and traversing the GC heap
 
Also Yun has few good post on the CLR and on  .net debugging and gotcha’s here which are worth mentionable. Above all the post of CHRIS BRUMME  Lifetime, GC.KeepAlive, handle recycling  is a gem and tell the internals which clears many doubts  
 
    you can  look into the same just got the same from my friend and i ve yet to look into the same).Howveer there are few post and presentation which might be useful for such scenario have a look inot these
http://www.we-learn.net/powerpoints/ TroubleShooting%20Production%20Applications.ppt
and also rico’s post
 
There are few more tools which helps you identifying memory leaks here are few third party one
 
 
 

I became a MVP now

Posted: July 6, 2005 in Uncategorized
I become a MVP now.On this Occasion I would like to thanks MS again (again because for the technologies and specially .net stuff i m always   greatful to MS).
 
Thanks MS and hopefully i would be able to Carry the values.
 
thx
shreeman