Manta Interactive Ray Tracer Development Mailing List

Text archives Help


Re: [MANTA] weird ifstream behavior


Chronological Thread 
  • From: "Steven G. Parker" <sparker@cs.utah.edu>
  • To: Aaron Knoll <knolla@cs.utah.edu>
  • Cc: manta@sci.utah.edu
  • Subject: Re: [MANTA] weird ifstream behavior
  • Date: Wed, 17 May 2006 22:07:54 -0600

You aren't compiling with the -malign flags are you?
Steve

On May 17, 2006, at 9:51 PM, Aaron Knoll wrote:

Only on the mactel (not on the linux build), I get odd behavior when I try to read using ifstream on plain text files. If I just open the file (i.e. don't read in any variables) this corrupts memory:

ifstream in(filename);
in.close();

conversely, memory is uncorrupted if I don't do this.

The only difference I can think of: I created the text file on a Linux machine.

Anyone have issues like this before? If not, it's probably something silly I'm doing a few instructions before...

Thanks!

-Aaron






Archive powered by MHonArc 2.6.16.

Top of page