Re: XML Serialization Weird Exception
From: Manuel Vázquez (ManuelVzquez_at_discussions.microsoft.com)
Date: 02/16/05
- Next message: Sean Hederman: "Re: Custom Attributes on Controls"
- Previous message: HakonB: "Re: XML Serialization Weird Exception"
- In reply to: HakonB: "Re: XML Serialization Weird Exception"
- Next in thread: HakonB: "Re: XML Serialization Weird Exception"
- Reply: HakonB: "Re: XML Serialization Weird Exception"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 16 Feb 2005 07:45:06 -0800
:(
I forgot to mention I did that. Actually, I have tried lots of hacks to make
this work.
Besides, regardless whether the writer is collected or not, I closed it, so
it should have clear any references to the file/stream.
Thanks,
Manuel.
"HakonB" wrote:
> Could it be because the the reader isn't garbage collected yet and
> still holds a reference to the file?
>
> Try to put a w = null after you close the writer and perhaps a
> GC.Collect() as well. Or you could open the file with sharing set to
> FileShare.Read.
>
> Regards,
> HakonB
>
>
- Next message: Sean Hederman: "Re: Custom Attributes on Controls"
- Previous message: HakonB: "Re: XML Serialization Weird Exception"
- In reply to: HakonB: "Re: XML Serialization Weird Exception"
- Next in thread: HakonB: "Re: XML Serialization Weird Exception"
- Reply: HakonB: "Re: XML Serialization Weird Exception"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|