Re: iostreams in 2.0

New Message Reply Date view Thread view Subject view Author view

Christopher Fouts (fouts++at++gameover.atlanta.sgi.com)
Wed, 29 Nov 1995 12:36:40 -0500


On Nov 29, 8:32am, Randall Barker wrote:
> Subject: iostreams in 2.0
) Yesterday, we finally got Performer 2.0 beta (a151) installed on my
system. I
) started working with some of the exaple code in:
) /usr/share/Performer/src/pguide/libpf/C++
) The programs that the Makefile built a ran fine. When I added a cerr
to
) complex.C, compiled it than ran, it core dumped. Cout and even cin
had the
) same effects. It had the same effects in the other sample programs
that
) compiled. Is this a bug, or am I doing something really wrong here?
 I did
) skim through most of the InSight pages Yesterday and say no reference
in the
) C++ section about not using iostreams...

First guess is that iostreams is not multiprocess safe (I haven't heard
whether it is or not). Standard C I/O is. Try running it in single
process mode and see if that fixes it. If so, then the workaround
would be to revert back to fprintf's....

-- 

Chris Fouts, SGI, Atlanta, GA -- Email: fouts++at++atlanta.sgi.com Vmail: 5-8714 -- Fone: (770)-475-0464 -- Phax: (770)-475-4414

"The way this day has gone, I'm surprised I remembered to put on my pants this morning. Oh great, how long has my fly been open?"


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:04 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.