HighTechTalks DotNet Forums  

XMLSerializer - Caching

Dotnet XML microsoft.public.dotnet.xml


Discuss XMLSerializer - Caching in the Dotnet XML forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Amazedsaint
 
Posts: n/a

Default XMLSerializer - Caching - 10-22-2007 , 03:13 AM






The simple constructors of XMLSerializer class caches the typed serializer
once it is generated.

(Probably as you know, other XMLSerializer constructors will result in a
memory leak because they will generate the assembly each time instead of
using the cached one)

a) When an XMLSerializer is used from ASP.NET, where exactly the generated
typed serializer is getting cached? What is the probability/crieteria for the
object in the cache may get distroyed/invalidated?

b) Can we assume that once the XMLSerializer is initialized with the
constructor XMLSerializer (sometype), all further XMLSerializer constructor
initializations for sometype, will use the cached serializer?

c) Also, we found that SGen is crashing when classes with same name exists
under different namespaces in the source assembly. Any fixes?



--------------------------------------------------------------------------------
Anoop - Spiritual Programming!! - Articles on design patterns & .NET -
http://amazedsaint.blogspot.com



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.