Re: XML Serialization Weird Exception

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Manuel Vázquez (ManuelVzquez_at_discussions.microsoft.com)
Date: 02/16/05


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
>
>



Relevant Pages

  • Re: Russian Chronicles on the Battle at Kalka [Re: Genghis Khan and the making of the modern worldp
    ... Here are some notes on the Kalka River 1223. ... I wish the writer would have include more ... references. ... Here are some notes on the Russian military after the battle. ...
    (soc.history.medieval)
  • Re: Glycemic Index and Diabetes
    ... opinions. ... Gretchen Becker (diabetic and writer) ... qualifications, and if not, the references usually are:-) ...
    (alt.support.diabetes)
  • Re: No crews on the boats and zeppelins
    ... designations, etc., regardless of gender. ... course set off a barrage of e-mails to the writer, me included, about ... using that expression when referring to females. ... Somewhere in the middle of posting all the dozens of PC e-mails the ...
    (alt.games.warcraft)
  • Re: Qeustion about Canon
    ... > Prehaps you will be so kind to show us any early writer who includes them. ... > You up to the challege CLOWN?? ... earlier references, one must examine the writings of the Church Fathers ...
    (alt.religion.christian.roman-catholic)
  • Re: Final Crisis: Requiem
    ... shown good reasoning skills...But on the basis of the *original ... question*, I'd have to agree that, regardless of whether they bring it ... easily be that the writer simply forgot and honestly didn't realize ...
    (rec.arts.comics.dc.universe)