Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

performance - How can I load a .net native image (NGEN) into multiple appdomains without specifying domain neutrality? -


ngen + appdomain problem here.

i'm working on application changes revolve around making native images load correctly prevent awful jit time in our .net application. parts easy, assemblies have load in appdomains (which our app has use variety of reasons) load native image first time, , on subsequent loads (in new appdomain) image rejected , jit occurs.

i know domain-neutral loading, , have made use of of our assemblies makes sense, doing domain-neutral loading cancels out 1 of major reasons using appdomains in first place -- domain neutral images can never unloaded.

put succinctly, need way have native images loading , assembly unloading. had hoped normal restriction wouldn't apply long unloaded first usage of native image before tried load again, resulted in rejection if trying load native image concurrently.

this msdn article contains following quote:

an alternative approach falling jit compilation load different copies of native image every appdomain loads corresponding assembly domain-specific. however, approach require every copy of ngen image, except first, loaded @ different address preferred base address. of these copies of ngen image need addresses fixed up.

this perfect needs, article place i've ever seen mentioned , unsure how implemented.

thanks in advance insight, , looking.

i had hoped normal restriction wouldn't apply long unloaded first usage of native image before tried load again, resulted in rejection if trying load native image concurrently.

this works, have wait native image unloaded. when appdomain.unload returns, appdomain not unloaded. appdomain unloaded (along native images) after next full gc.

this msdn article contains following quote:

surupa speculating possible alternative implementation in clr not implemented.

thanks lakshan fernando clr team


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -