From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id p93J06Hv016513 for ; Mon, 3 Oct 2011 21:00:06 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqEBACMFik7RVdy2mGdsb2JhbABCmTOOSAgiAQEBAQEICQ0HFCWBUwEBAQMBEgJqCwsEAQY7IhIBBQEcGQgah1mbewqcNochBJNgjRQ9hAk X-IronPort-AV: E=Sophos;i="4.68,480,1312149600"; d="scan'208";a="111582829" Received: from mail-vx0-f182.google.com ([209.85.220.182]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/RC4-SHA; 03 Oct 2011 21:00:01 +0200 Received: by vcbf13 with SMTP id f13so5692120vcb.27 for ; Mon, 03 Oct 2011 12:00:00 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.179.1 with SMTP id dc1mr325209vdc.65.1317668400120; Mon, 03 Oct 2011 12:00:00 -0700 (PDT) Received: by 10.52.184.167 with HTTP; Mon, 3 Oct 2011 12:00:00 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Oct 2011 15:00:00 -0400 Message-ID: From: Pierre Chopin To: caml-list@inria.fr Content-Type: multipart/alternative; boundary=bcaec5171de3ebc29404ae699487 Subject: Re: [Caml-list] Problem with un-flushed output getting mangled --bcaec5171de3ebc29404ae699487 Content-Type: text/plain; charset=ISO-8859-1 Hi 2011/9/29 Taylor Venable > Hi there, I'm having a problem with some code I've written. The gist > of my program (whose code I unfortunately cannot share at this time, > I'll have to get approval first) is this: > > 1. Read elements from an XML file and turn them into objects. > 2. Place these objects into hash tables. > 3. Do some stuff with those objects. > 4. Print them out to various files (depending on the type of the object). > > My trouble is this: if I fail to call flush on the output channels in > step #4, I get mangled output. Do you have more than one output channel on the same file open at the same time ? -- Pierre Chopin, Chief Technology Officer and co-founder punchup LLC pierre@punchup.com --bcaec5171de3ebc29404ae699487 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi

2011/9/29 Taylor Venable <taylor@metasyntax.net>
Hi there, I'm having a problem with some code I've written. The gis= t
of my program (whose code I unfortunately cannot share at this time,
I'll have to get approval first) is this:

1. Read elements from an XML file and turn them into objects.
2. Place these objects into hash tables.
3. Do some stuff with those objects.
4. Print them out to various files (depending on the type of the object).
My trouble is this: if I fail to call flush on the output channels in
step #4, I get mangled output.=A0


Do you have more than one output channel on the same file open = at the same time ?

--
Pierre Chopin,
Chief Technology Officer and co-founder
punchup LLC



--bcaec5171de3ebc29404ae699487--